Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Errors while Building #4

Open
jollySleeper opened this issue Nov 26, 2024 · 0 comments
Open

Errors while Building #4

jollySleeper opened this issue Nov 26, 2024 · 0 comments

Comments

@jollySleeper
Copy link

As mentioned in PR #3, I was trying to build the app and have patched some of the errors but I'm enable to solve this error.

Error: src/App.tsx(69,9): error TS2322: Type 'Dispatch<SetStateAction<DualRoleEntry[]>>' is not assignable to type '(entries: DualRoleEntry[]) => void'.
  Types of parameters 'value' and 'entries' are incompatible.
    Type 'DualRoleEntry[]' is not assignable to type 'SetStateAction<DualRoleEntry[]>'.
      Type 'DualRoleEntry[]' is not assignable to type 'DualRoleEntry[]'. Two different types with this name exist, but they are unrelated.
        Type 'DualRoleEntry' is not assignable to type 'DualRoleEntry'. Two different types with this name exist, but they are unrelated.
          Types of property 'input' are incompatible.
            Type 'string | string[]' is not assignable to type 'string[]'.
              Type 'string' is not assignable to type 'string[]'.
       Error beforeBuildCommand `npm run build` failed with exit code 2

Note that these error occur even after the #3 code changes are present.
For more infomation @M8850 you can check the summary.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant