T
TanStack2mo ago
unwilling-turquoise

Generator not working with path params

I'm trying to make a path for /folder/$id but it throws this error Error: EPERM: operation not permitted, rename then if I restart it sets the path to /folder
1 Reply
unwilling-turquoise
unwilling-turquoiseOP2mo ago
export const Route = createFileRoute('/folder/$id')({
component: RouteComponent,
});

function RouteComponent() {
const id = //;
return <div>Hello ${id}!</div>;
}
export const Route = createFileRoute('/folder/$id')({
component: RouteComponent,
});

function RouteComponent() {
const id = //;
return <div>Hello ${id}!</div>;
}
oh i have to rename the tsx file

Did you find this page helpful?