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
ambitious-aquaOP•7mo ago
Here is the error
Property 'projectId' does not exist on type 'Record<never, string>'.
fair-rose•7mo ago
params must be parsed in the route that defines them. so one level above that route you currently have it in
ambitious-aquaOP•7mo ago
ho nice so I don't have to parse it again thanks
I get it. Solved.