Replies: 2 comments 2 replies
-
are you looking for https://tanstack.com/router/latest/docs/framework/react/guide/file-based-routing#options |
Beta Was this translation helpful? Give feedback.
0 replies
-
Oh, great! Why would this be an option though? Seems simpler just to include the extensions. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The release of Deno 2.0 makes me excited for the future of TypeScript development, and Tanstack will get left behind without this change. What change you ask?
The generated route file at the heart of Tanstack Router (
routeTree.gen.ts
) includes this line:With native ECMAScript modules, local import specifiers must always include the full file extension. It cannot be omitted.
This means Tanstack router can't be used in environments that have strict support the ECMAScript Modules standard (Deno).
Deno's approach is the correct one. Suggestion: removing the need for special workarounds (ie
moduleResolution: bundler
), and "magic" syntax, especially in auto-generated files, in favour of generating standards-compliant code!Beta Was this translation helpful? Give feedback.
All reactions