-
-
Notifications
You must be signed in to change notification settings - Fork 6.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Vite resolves import with browser field during SSR #2995
Comments
Can this issue be reopened? The mentioned PR doesn't completely resolve this issue. See related: supabase/supabase-js#154 (comment) |
@stupidawesome Looking at your linked comment, it looks like that should be opened as a new issue instead, because the root of that issue seems to be Vite only resolving dependencies once + incorrectly resolving isomorphic packages, whereas this seems to be only concerned with the |
Describe the bug
The presence of a
browser
field is causing Vite to try to load the client-side version of an isomorphic package on the server-side.Reproduction
System Info
Output of
npx envinfo --system --npmPackages vite,@vitejs/plugin-vue --binaries --browsers
:Used package manager: npm
Logs
Before submitting the issue, please make sure you do the following
The text was updated successfully, but these errors were encountered: