Type error in `params.parse` callback with a route that include a path param
I have a file
src/routes/_restricted/projects/$projectId.content.tsx
with this code :
I don't know why I have this error on the params.parse
callback. Do you think it my be a bug?
I also have a "/_restricted/projects/$projectId"
where it works correctly.3 Replies
wise-whiteOP•5mo ago
Here is the error
Property 'projectId' does not exist on type 'Record<never, string>'.
adverse-sapphire•5mo ago
params must be parsed in the route that defines them. so one level above that route you currently have it in
wise-whiteOP•5mo ago
ho nice so I don't have to parse it again thanks
I get it. Solved.