-
Notifications
You must be signed in to change notification settings - Fork 894
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
Firebase v9.0.1 with Sveltekit node adapter – build failure #5499
Comments
@kenkunz Thanks for filing the detailed repro! I was able to reproduce the issue. Not sure what's happening here, but I'll report back after playing around with it some more. |
@thebrianchen great, thanks for the update! |
I was having a similar problem, 9.0.0 builds fine, 9.0.2 throws an error with tslib not being able to find default. I think it is an ES6 module issue with tslib.... lots of research... no answer.... switching back to 9.0.0 seems to work for now. Error: Build failed with 1 error: |
We added an
We can just provide an esm Node build to avoid this, we just need to figure out what field to put it in, and look into what we need to do to make sure the |
@hsubox76 thanks for the update. Finding the cause is often 90% of the battle! Hope the solution is as straightforward as it sounds. I appreciate the Firebase team's support on this! |
Having the same issue with latest Sveltekik, static-adapter and Firebase 9.1.1. Interestingly, it seems that only the |
There is a PR to fix this, but it will involve dropping Node 8 support, so we're making sure we can do that: #5532 |
@hsubox76 thanks for the update. My 2¢… seems pretty reasonable to sunset support for an EOL'd node version (since Dec 2019) in your new SDK version :) |
Thanks for addressing this, @hsubox76 💯! Will keep my eyes open for the next release 🚀 |
[REQUIRED] Describe your environment
[REQUIRED] Describe the problem
I am using Firebase (
auth
andfirestore
) in a Sveltekit project. It has been building and running successfully until I recently tried to upgrade. I was able to isolate the error to9.0.1
(more specifically:firestore 3.0.1
).I created a minimal app to identify what dependencies/versions are required in order to reproduce the issue. This occurs when building any recent version of Sveltekit with the
node
adapter. Using an older version of Sveltekit or thenode
adapter does not resolve the problem. Only by reverting to Firebase9.0.0
(firestore 3.0.0
) was it resolved, which is why I believe the issue is with Firebase / Firestore.Steps to reproduce:
firebase
and@sveltejs/adapter-node
)svelte.config.js
andsrc/routes/index.svelte
to import/use the two dependencies (see below)firebase
to9.0.0
and build againRelevant Code:
./svelte.config.js
./src/routes/index.svelte
Resulting Error Output
The text was updated successfully, but these errors were encountered: