-
-
Notifications
You must be signed in to change notification settings - Fork 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
Build fails when importing firebase firestore #2595
Comments
There are bugs in Firebase (firebase/firebase-js-sdk#4846) and Vite (vitejs/vite#4425) causing Firebase not to work with SvelteKit. Please give a thumbs up on those issues. There's not much we can do in SvelteKit itself to fix this |
Is there anything I can do to skip the SSR or the part of the bundling that's causing the error? |
@JakubBlaha see firebase/firebase-js-sdk#5499 which appears to be related. Please give a 👍 on that issue as well (and the PR that fixes it). If this is the same root issue that you're seeing with the vercel adapter, you should be able to revert to |
Probably not until #2529 is merged @kenkunz, thanks for sharing firebase/firebase-js-sdk#5499! I chimed in on the PR, which looks like a good fix for Firestore and suggested they do the same for all the other Firebase packages as well I'm going to go ahead and close this since the issue is in Firebase and there's nothing we can do beyond offer guidance. Since there's already a PR pending with the fix and we've weighed in on it, I'm going to go ahead and close this |
I bumped into this issue today as well, but the package I have is when importing like this: import { BroadcastChannel, createLeaderElection } from 'broadcast-channel'; I got:
But the "license": "MIT",
"main": "./dist/es5node/index.js",
"module": "./dist/esnode/index.js",
"name": "broadcast-channel", So I don't understand why vite cannot pick up the |
@winston0410 please file a new issue with a repository to reproduce. We can't track comments on closed issues |
Describe the bug
When working with firebase firestore,
pnpm build
fails with the following error.Reproduction
https://github.com/jakubblaha-ids/vite-firebase-error
Logs
System Info
Severity
blocking all usage of SvelteKit
Additional Information
No response
The text was updated successfully, but these errors were encountered: