I added this route to main.wasp, route QuizRoute { path: "/quiz/:id", to: QuizPage } page QuizPage { authRequired: true, component: import DemoAppPage from "@src/client/app/QuizPage" }
When I try connecting to this route, I get an error, <Link to='/quiz/2'>
I am getting this error, types.d.ts(13, 9): The expected type comes from property 'to' which is declared here on type 'IntrinsicAttributes & (Omit<LinkProps<unknown> & RefAttributes<HTMLAnchorElement>, "to"> & { search?: Record<...> | undefined; hash?: string | undefined; } & Routes)' (property) to: "/quiz/2"
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.