Routing to another page
Hi, I'm getting type errors when trying to route to another page. e.g. a profile/:id page. I am aware of this documentation: https://wasp-lang.dev/docs/advanced/links. But when I try to use <Link
to="/profile/:id"
params={{ id: creation.user.id }}
className="text-blue-500 hover:underline"
>
{creation.user.username}
</Link> -- i get this exact error: [ Wasp ] ext-src/featured-creations/FeaturedCreationsPage.tsx(129,15): error TS2820: Type '"/profile/:id"' is not assignable to type '"/" | "/login" | "/signup" | "/request-password-reset" | "/password-reset" | "/email-verification" | "/account" | "/demo-app" | "/admin-users" | "/pricing" | "/checkout" | ... 11 more ... | "/admin/messages"'. Did you mean '"/profile/:id?"'? -- i am using // Define the route for My Profile page
route MyProfileRoute { path: "/profile/:id?", to: UserProfilePage }
How can I fix this please?
to="/profile/:id"
params={{ id: creation.user.id }}
className="text-blue-500 hover:underline"
>
{creation.user.username}
</Link> -- i get this exact error: [ Wasp ] ext-src/featured-creations/FeaturedCreationsPage.tsx(129,15): error TS2820: Type '"/profile/:id"' is not assignable to type '"/" | "/login" | "/signup" | "/request-password-reset" | "/password-reset" | "/email-verification" | "/account" | "/demo-app" | "/admin-users" | "/pricing" | "/checkout" | ... 11 more ... | "/admin/messages"'. Did you mean '"/profile/:id?"'? -- i am using // Define the route for My Profile page
route MyProfileRoute { path: "/profile/:id?", to: UserProfilePage }
How can I fix this please?