-
Notifications
You must be signed in to change notification settings - Fork 927
import firebase version 8.6.4 cannot compile on npm install - react #4977
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
Comments
I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight. |
I got the same issue when bundeling with vitejs my application with the version v8.6.4
Downgrading firebase to v8.6.3 resolve the issue |
same issue here with WIN10, [email protected], node 14.7.0, npm 6.14.11; it started working again after
|
Same issue to me, I solved this problem |
Downgraded to 8.4.3, 8.6.1, 2, and 3. Ran a clean install multiple times with |
@barakiva Did you delete about firebase packages in package-lock.json? |
We need to publish a new version of WebChannel Wrapper. |
I deleted all of package-lock.json multiple times when NPM got stuck trying to degrade firebase. Still didn't work. |
I will see if we can publish the newer WebChannel Wrapper this morning, but in the meantime an older install of Firestore should work. |
@schmidt-sebastian Thank you! |
A bit premature closing of the issue? The new package haven't been published yet: https://www.npmjs.com/package/@firebase/webchannel-wrapper |
We generally close issues once the necessary code changes are merged. I will ping this issue when the change is published. |
Package is published. |
Thanks! |
Steps to reproduce: npm install firebase @8.6.4 and import firebase from "firebase" within react. on npm start, recieve "failed to compile" start error
when attempting to import firebase in React, I am met with the error below.
./node_modules/@firebase/firestore/dist/esm5/prebuilt-db9cc925-eb007c37.js
Attempted import error: 'FetchXmlHttpFactory' is not exported from '@firebase/webchannel-wrapper' (imported as 'v').
by removing the FetchXmlHttpFactory import within the referenced prebuilt file above, I can get Firebase to compile correctly within React.
The text was updated successfully, but these errors were encountered: