-
Notifications
You must be signed in to change notification settings - Fork 2.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
Module not found: Error: Can't resolve '@firebase/XXXX' in '~/node_modules/firebase/...' after Firebase 4.8.1 #1385
Comments
Same setup and I think same issue: ERROR in node_modules/@firebase/database/dist/esm/src/api/Database.d.ts(4,33): error TS2307: Cannot find module '@firebase/app-types/private'. |
Rolling back to |
They refactored the firebase javascript sdk typing files. AngularFire2 has to refactor the firebase typing imports to fix that issue. |
Go back to firebase 4.8.0:
|
Fixes the dashboard failing to deploy due to an error in `firebase@4.8.1`. Locks down the version to 4.8.0 for now. See angular/angularfire#1385.
Fixes the dashboard failing to deploy due to an error in `firebase@4.8.1`. Locks down the version to 4.8.0 for now. See angular/angularfire#1385.
This still happens in firebase 4.10.1 with angularfire2 5.0.0-rc.6, is there a fix for this? |
I have the same issue in the latest version "firebase": "^4.12.1", "angularfire2": "^5.0.0-rc.6.0" !! |
even I have the same issue in the latest version "firebase": "^4.12.1", "angularfire2": "^5.0.0-rc.6.0", please suggest some solution |
Hey guys i was having similar issues.
Try doing this for the what it says you're missing it may have removed them in the upgrade. |
the issue remains with "angularfire2": "^5.0.0-rc.6.0" and "firebase": "^4.13.0", |
@anasbaddyr Thanks for the tip. Adding the individual module packages seems to fix the issue. |
I solved with npm install @firebase/app@0.1.10 |
it worked just fine when I downgraded firebase version, actual config : "angularfire2": "5.0.0-rc.6.0", |
I solved it by reinstalling |
I solved it by putting this interface definition in the file where I keep my models exports: export interface Timestamp {
constructor(seconds: number, nanoseconds: number);
readonly seconds: number;
readonly nanoseconds: number;
toDate(): Date;
toMillis(): number;
isEqual(other: Timestamp): boolean;
} |
npm i @firebase/auth .... Thanks this solved the issue |
Is this still the best solution today? This break other parts of my app.
|
VS Code mistakenly put the wrong source path
|
i had same problem in angular 9.1 firebase 7.14 and firebase cli 8.4 base on this answer that the problem is made by vs code auto imports system - i fix my problem with the same logic but diffrent path |
Version info
Angular:
5.1.1
Firebase:
4.8.1
AngularFire:
5.0.0-rc.4
Other (e.g. Ionic/Cordova, Node, browser, operating system):
Other latest; OS: macOS latest when submitting
How to reproduce these conditions
npm start failed to compile
Failing test unit, Plunkr, or JSFiddle demonstrating the problem
Steps to set up and reproduce
Sample data and security rules
<-- include/attach/link to some json sample data (or provide credentials to a sanitized, test Firebase project) -->
Debug output
** Errors in the JavaScript console **
Can't resolve '@firebase/polyfill' in ...
Can't resolve '@firebase/firestore'
Can't resolve '@firebase/database'
Can't resolve '@firebase/auth'
Can't resolve '@firebase/app' in '/.../node_modules/firebase/XXXX'
@ ./node_modules/firebase/auth/index.js 17:0-25
@ ./node_modules/angularfire2/auth/auth.module.js
@ ./node_modules/angularfire2/auth/public_api.js
@ ./node_modules/angularfire2/auth/index.js
@ ./src/app/app.module.ngfactory.js
@ ./src/main.browser.ts
@ multi (webpack)-dev-server/client?http://0.0.0.0:8080 ./src/main.browser.ts
** Output from
firebase.database().enableLogging(true);
**** Screenshots **
Expected behavior
Actual behavior
The text was updated successfully, but these errors were encountered: