'unknown' is not assignable to parameter of type 'SetStateAction<string>'.
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
52 | } else {
53 | // handle errors thrown from backend
54 | setError(err); | ^ 55 | } 56 | } 57 | };
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
} else {
// handle errors thrown from backend
setError(String(err));
}
Cast does the trick
I'll merge a PR if you want to make one for this?