T
TanStack5mo ago
frail-apricot

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
frail-apricot
frail-apricotOP5mo 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?