How do I use firebase v3 in Ionic2 via npm?


I have this error in firebase/auth.js and firebase/database.js:

rollup: Use of eval is strongly discouraged, as it posses security risks

This must be error in firebase node_module! I can’t understand what’s going on.

It’s working When I remove firebase.initializeApp(config)

But, having same error on adding above.

enter image description here

enter image description here


Using Firebase v3 in Ionic2 Via NPM is not working at all!! Had lot’s of problems in their node module.

So, I found a solution.. follow the link below, where discussion has been made for similar problem.

And here is the direct link of solution ..

Simply, do not use Firebase v3 in Ionic2 Via NPM, unless they fix problems in their firebase node module.

Answered By – Ankit Maheshwari

This Answer collected from stackoverflow, is licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply

(*) Required, Your email will not be published