-
Notifications
You must be signed in to change notification settings - Fork 352
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
'unknown' is not assignable to parameter of type 'SetStateAction<string>'. #168
Comments
first time using TS so I thought it was just me -- am getting the same error |
You can try changing the strict setting in frontend/tsconfig.json to false. |
thanks its working now |
Cast does the trick |
I'll merge a PR if you want to make one for this? |
JosXa
added a commit
to JosXa/fastapi-react
that referenced
this issue
Sep 21, 2021
cardoe
added a commit
to cardoe/fastapi-react
that referenced
this issue
Nov 2, 2021
This failed to compile due to a mis-match of types with TypeScript 4.x. fixes Buuntu#168.
cardoe
added a commit
to cardoe/fastapi-react
that referenced
this issue
Nov 2, 2021
This failed to compile due to a mis-match of types with TypeScript 4.x. fixes Buuntu#168.
cardoe
added a commit
to cardoe/fastapi-react
that referenced
this issue
Nov 2, 2021
This failed to compile due to a mis-match of types with TypeScript 4.x. fixes Buuntu#168.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When launching docker compose up and then going to localhost:8000, I got the following error:
/app/src/views/Login.tsx
TypeScript error in /app/src/views/Login.tsx(54,18):
Argument of type 'unknown' is not assignable to parameter of type 'SetStateAction'.
Type 'unknown' is not assignable to type '(prevState: string) => string'. TS2345
The text was updated successfully, but these errors were encountered: