You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So it seems like something in Vite is expecting process.platform to exist in a browser environment.
The strange thing about this error is that I don't see it in a new project initialized with npm init svelte@next my-app. If it was purely a Vite bug I would think it would reproduce in a new project as well. I need to get the Svelte Kit options in the test project closer to what I'm using in this repo until I can reproduce the bug.
The text was updated successfully, but these errors were encountered:
The above error only happens if I turn hydration on and I'm not going to bother with that right now. (I thought I would need to address this as a fix for #12, but I found a simpler way to fix that.)
Running
npm run build
andnpm run preview
throws the following error in the console:The error seems to be coming from here:
So it seems like something in Vite is expecting
process.platform
to exist in a browser environment.The strange thing about this error is that I don't see it in a new project initialized with
npm init svelte@next my-app
. If it was purely a Vite bug I would think it would reproduce in a new project as well. I need to get the Svelte Kit options in the test project closer to what I'm using in this repo until I can reproduce the bug.The text was updated successfully, but these errors were encountered: