Migration Issue from 0.16 to 0.17.1 - TypeScript Errors (OpenSaaS)
Hi everyone! I'm having some issues migrating my OpenSaaS project from WASP 0.16 to 0.17.1. After following the migration guide, I'm getting these TypeScript errors when trying to start the app:
[ Wasp ] core/auth.ts(17,7): error TS2742: The inferred type of 'auth' cannot be named without a reference to 'express/node_modules/@types/express-serve-static-core'. This is likely not portable. A type annotation is necessary.[ Wasp ] src/youpiter/pages/auth/AuthSignupPage.tsx(55,33): error TS2345: Argument of type '{ email: string; password: string; }' is not assignable to parameter of type 'EmailSignupData'.[ Wasp ] Property 'username' is missing in type '{ email: string; password: string; }' but required in type '{ username: string; password: string; }'.
[ Wasp ] core/auth.ts(17,7): error TS2742: The inferred type of 'auth' cannot be named without a reference to 'express/node_modules/@types/express-serve-static-core'. This is likely not portable. A type annotation is necessary.[ Wasp ] src/youpiter/pages/auth/AuthSignupPage.tsx(55,33): error TS2345: Argument of type '{ email: string; password: string; }' is not assignable to parameter of type 'EmailSignupData'.[ Wasp ] Property 'username' is missing in type '{ email: string; password: string; }' but required in type '{ username: string; password: string; }'.
I'm particularly concerned about the first error in core/auth.ts, which seems to be coming from WASP's core system rather than my application code. This suggests there might be a deeper issue with type definitions or dependencies after the migration. The second error appears to be related to the signup form now requiring a username field, but I'm not sure if this is expected behavior in the new version or if it's connected to the core auth issue. I'm attaching my package.json for reference. Has anyone encountered similar core-level TypeScript errors with OpenSaaS migrations? Any insights on what might be causing the auth type inference issue would be greatly appreciated!
Thanks in advance!
Recent Announcements
Continue the conversation
Join the Discord to ask follow-up questions and connect with the community
W
Wasp
Rails-like framework for React, Node.js and Prisma. Build your app in a day and deploy it with a single CLI command.