Replies: 1 comment
-
It doesn't have to be that specific environment variable. I've seen projects use a variable like |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am looking at https://tanstack.com/router/v1/docs/devtools and it is using
process.env.NODE_ENV
which won't work in Vite (which is the recommended bundler in the rest of the doc).As soon as I changed this snippet to use

import.env.NODE_ENV
, I got this error in my app:I understand that now the entire app should be wrapped in a
<Suspense>...</Suspense>
because of the lazy loading of the devtools. I think this should be mentioned too in the documentation, provided that I got it right :)Beta Was this translation helpful? Give feedback.
All reactions