This looks similar to #1397. I can create a complete repro if needed, but I've literally followed the install guide to the letter.
Sputnik:test-af2 katowulf$ npm list | grep angular
โโโฌ @angular/[email protected]
โโโฌ @angular/[email protected]
โ โโโฌ @angular-devkit/[email protected]
โ โ โโโฌ @angular-devkit/[email protected]
โ โโโฌ @schematics/[email protected]
โ โ โโโฌ @angular-devkit/[email protected]
โโโฌ @angular/[email protected]
โโโฌ @angular/[email protected]
โ โโโฌ @angular/[email protected]
โโโฌ @angular/[email protected]
โโโฌ @angular/[email protected]
โโโ @angular/[email protected]
โโโฌ @angular/[email protected]
โโโ [email protected]
Sputnik:test-af2 katowulf$ npm list | grep fire
โโโ [email protected]
โโโฌ [email protected]
โ โโโฌ @firebase/[email protected]
โ โ โโโ @firebase/[email protected]
โ โ โโโ @firebase/[email protected]
โ โโโฌ @firebase/[email protected]
โ โ โโโ @firebase/[email protected]
โ โโโฌ @firebase/[email protected]
โ โ โโโ @firebase/[email protected]
โ โ โโโ @firebase/[email protected] deduped
โ โโโฌ @firebase/[email protected]
โ โ โโโ @firebase/[email protected]
โ โ โโโ @firebase/[email protected]
[email protected]@schematics/[email protected]
โ โโโฌ @firebase/[email protected]
โ โ โโโ @firebase/[email protected]
โ โ โโโ @firebase/[email protected] deduped
โ โโโฌ @firebase/[email protected]
โ โโโฌ @firebase/[email protected]
โ โ โโโ @firebase/[email protected]
ng serve after installing AF2* Errors in the JavaScript console *
This error appears upon running ng serve immediately after adding AngularFireModule.initializeApp(environment.firebase), into my app.module.ts and running ng serve
ERROR in /Users/katowulf/projects/test-af2/node_modules/angularfire2/firebase.app.module.d.ts (5,45): Cannot find namespace 'firebase'.
ERROR in /Users/katowulf/projects/test-af2/node_modules/angularfire2/firebase.app.module.d.ts (8,17): Cannot find namespace 'firebase'.
ERROR in /Users/katowulf/projects/test-af2/node_modules/angularfire2/firebase.app.module.d.ts (9,21): Cannot find namespace 'firebase'.
ERROR in /Users/katowulf/projects/test-af2/node_modules/angularfire2/firebase.app.module.d.ts (10,22): Cannot find namespace 'firebase'.
ERROR in /Users/katowulf/projects/test-af2/node_modules/angularfire2/firebase.app.module.d.ts (11,20): Cannot find namespace 'firebase'.
ERROR in /Users/katowulf/projects/test-af2/node_modules/angularfire2/firebase.app.module.d.ts (13,22): Cannot find namespace 'firebase'.
ERROR in Error: Metadata version mismatch for module /Users/katowulf/projects/test-af2/node_modules/angularfire2/index.d.ts, found version 4, expected 3, resolving symbol AppModule in /Users/katowulf/projects/test-af2/src/app/app.module.ts, resolving symbol AppModule in /Users/katowulf/projects/test-af2/src/app/app.module.ts, resolving symbol AppModule in /Users/katowulf/projects/test-af2/src/app/app.module.ts
at syntaxError (/Users/katowulf/projects/test-af2/node_modules/@angular/compiler/bundles/compiler.umd.js:1729:34)
at simplifyInContext (/Users/katowulf/projects/test-af2/node_modules/@angular/compiler/bundles/compiler.umd.js:24979:23)
at StaticReflector.simplify (/Users/katowulf/projects/test-af2/node_modules/@angular/compiler/bundles/compiler.umd.js:24991:13)
at StaticReflector.annotations (/Users/katowulf/projects/test-af2/node_modules/@angular/compiler/bundles/compiler.umd.js:24418:41)
at _getNgModuleMetadata (/Users/katowulf/projects/test-af2/node_modules/@angular/compiler-cli/src/ngtools_impl.js:138:31)
at _extractLazyRoutesFromStaticModule (/Users/katowulf/projects/test-af2/node_modules/@angular/compiler-cli/src/ngtools_impl.js:109:26)
at Object.listLazyRoutesOfModule (/Users/katowulf/projects/test-af2/node_modules/@angular/compiler-cli/src/ngtools_impl.js:53:22)
at Function.NgTools_InternalApi_NG_2.listLazyRoutes (/Users/katowulf/projects/test-af2/node_modules/@angular/compiler-cli/src/ngtools_api.js:91:39)
at AotPlugin._getLazyRoutesFromNgtools (/Users/katowulf/projects/test-af2/node_modules/@ngtools/webpack/src/plugin.js:212:44)
at _donePromise.Promise.resolve.then.then.then.then.then (/Users/katowulf/projects/test-af2/node_modules/@ngtools/webpack/src/plugin.js:448:24)
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:188:7)
* Output from firebase.database().enableLogging(true); *
n/a
Should compile and start server when following install directions exactly.
Receive version mismatch in angularfire2/index.d.ts.
Reverting to RC3 resolves the "mismatch" error
Forcing Firebase 4.8.0 resolves "Cannot find namespace 'firebase'." as described in #1387
Should be fixed with the current next release. npm i angularfire2@next.
Metadata version mismatch for module E:/fhc-app-temp/node_modules/angularfire2/index.d.ts, found version 4, expected 3 getting this error plz help me
@gauravweni try to
' npm install [email protected] --save '
Fixed in the latest release.
I think this error is back. Getting it on brand new project:
"angularfire2": "^5.0.0-rc.10",
"firebase": "^5.0.4",
I'm getting this error in the 5.1.1 release. I have no idea how to fix it. I tried downgrading to 5.0.0.rc3 and rc4 but it didn't work
Most helpful comment
@gauravweni try to
' npm install [email protected] --save '