Open treize06 opened 3 years ago
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?
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