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

search-lessons.route.ts #6

Open
s0gemaker opened this issue Oct 9, 2020 · 0 comments
Open

search-lessons.route.ts #6

s0gemaker opened this issue Oct 9, 2020 · 0 comments

Comments

@s0gemaker
Copy link

WebStorm has detected errors in search-lessons.route.ts file and unable to run "npm run server" because of this. Appreciate if you please advise how to resolve following errors:

Error:(13, 27) TS2345: Argument of type 'string | ParsedQs | string[] | ParsedQs[]' is not assignable to parameter of type 'string'.
Type 'ParsedQs' is not assignable to type 'string'.
Error:(14, 25) TS2345: Argument of type 'string | ParsedQs | string[] | ParsedQs[]' is not assignable to parameter of type 'string'.
Type 'ParsedQs' is not assignable to type 'string'.
Error:(19, 55) TS2367: This condition will always return 'false' since the types 'number' and 'string | ParsedQs | string[] | ParsedQs[]' have no overlap.
Error:(25, 94) TS2339: Property 'toLowerCase' does not exist on type 'string | ParsedQs | string[] | ParsedQs[]'.
Property 'toLowerCase' does not exist on type 'string[]'.
Information:Cannot find parent 'tsconfig.json'

Regards

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