T
TanStack•2y ago
mute-gold

LayoutIndexImport.update is not a function

I am having problems creating a file-based routing setup using the Vite plugin for TanStack Router. I am getting an error I am not sure how to solve:
routeTree.gen.ts:35 Uncaught TypeError: LayoutIndexImport.update is not a function
at routeTree.gen.ts:35:44
routeTree.gen.ts:35 Uncaught TypeError: LayoutIndexImport.update is not a function
at routeTree.gen.ts:35:44
Reviewing routeTree.gen.ts in my editor shows me the following error. I am not sure if it's related (see picture). Any ideas? Sandbox: https://codesandbox.io/p/github//tanstack-router-test/main
No description
3 Replies
distinguished-blush
distinguished-blush•2y ago
index.tsx must be renamed to index.lazy.tsx
mute-gold
mute-goldOP•2y ago
Thank you 😅
distinguished-blush
distinguished-blush•2y ago
please mark this question as solved

Did you find this page helpful?