You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the auth.controller.ts file I see a lot of TypeScript errors that say:
"Property 'req' does not exist on type 'Promise<{ req: NextApiRequest; res: NextApiResponse; user: null; } | { req: NextApiRequest; res: NextApiResponse; user: { ...; }; }>'."
It likely got to do with the fact that this is a Promise.
In user.service.ts another type error:
"Property 'user' does not exist on type 'Promise<{ req: NextApiRequest; res: NextApiResponse; user: null; } | { req: NextApiRequest; res: NextApiResponse; user: { ...; }; }>'."
And in user.service.ts another one:
"Type 'Partial' is not assignable to type 'UserWhereInput'.\n Types of property 'posts' are incompatible.\n Type 'PostCreateNestedManyWithoutUserInput | undefined' is not assignable to type 'PostListRelationFilter | undefined'.\n Type 'PostCreateNestedManyWithoutUserInput' has no properties in common with type 'PostListRelationFilter'."
Running the app I'm unable to go past the login screen.
Register and upload works
Also maybe it's time to update the tutorials to tRPC 10 and Next.js 13 and fix some of the mistakes in the blog posts?
The text was updated successfully, but these errors were encountered:
In the auth.controller.ts file I see a lot of TypeScript errors that say:
"Property 'req' does not exist on type 'Promise<{ req: NextApiRequest; res: NextApiResponse; user: null; } | { req: NextApiRequest; res: NextApiResponse; user: { ...; }; }>'."
It likely got to do with the fact that this is a Promise.
In user.service.ts another type error:
"Property 'user' does not exist on type 'Promise<{ req: NextApiRequest; res: NextApiResponse; user: null; } | { req: NextApiRequest; res: NextApiResponse; user: { ...; }; }>'."
And in user.service.ts another one:
"Type 'Partial' is not assignable to type 'UserWhereInput'.\n Types of property 'posts' are incompatible.\n Type 'PostCreateNestedManyWithoutUserInput | undefined' is not assignable to type 'PostListRelationFilter | undefined'.\n Type 'PostCreateNestedManyWithoutUserInput' has no properties in common with type 'PostListRelationFilter'."
Running the app I'm unable to go past the login screen.
Register and upload works
Also maybe it's time to update the tutorials to tRPC 10 and Next.js 13 and fix some of the mistakes in the blog posts?
The text was updated successfully, but these errors were encountered: