Angularfire: promise-polyfill error

Created on 15 Apr 2017  路  3Comments  路  Source: angular/angularfire

Hi there,

I'm getting the following error when I add AngularFireModule.initializeApp(firebaseConfig) under imports in my app.modules.ts file.

ERROR in ./~/firebase/app/shared_promise.js
Module not found: Error: Can't resolve 'promise-polyfill' in 'C:UsersmartinWebDevestatecloudnode_modulesfirebaseapp'
@ ./~/firebase/app/shared_promise.js 22:35-62
@ ./~/firebase/app/firebase_app.js
@ ./~/firebase/app.js
@ ./~/firebase/firebase-browser.js
@ ./~/angularfire2/angularfire2.js
@ ./~/angularfire2/index.js
@ ./src/app/app.module.ts
@ ./src/main.ts
@ multi webpack-dev-server/client?http://localhost:4200 ./src/main.ts
webpack: Failed to compile.

Current Versions used:
Angular: 4.0
Firebase: 3.7.8
angularfire2: 2.0.0-beta.

Most helpful comment

@aussiemarty I was having the same issue. I added "promise-polyfill": "6.0.2" to my app's package.json, did a fresh npm install and it started working.

All 3 comments

@aussiemarty I was having the same issue. I added "promise-polyfill": "6.0.2" to my app's package.json, did a fresh npm install and it started working.

Thanks so much that did the trick!

@apfundst awesome, this fixed my prob as well, thanks!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

isawk picture isawk  路  3Comments

itisparas picture itisparas  路  3Comments

StephenFluin picture StephenFluin  路  3Comments

Leanvitale picture Leanvitale  路  3Comments

KLiFF2606 picture KLiFF2606  路  3Comments