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

孤人 提交于 2019-12-11 04:25:41

问题


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.


回答1:


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. https://forum.ionicframework.com/t/is-it-possible-to-use-firebase-v3-in-ionic-2/54387

And here is the direct link of solution .. https://github.com/aaronksaunders/ionic2firebase3

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



来源:https://stackoverflow.com/questions/41257526/rollup-use-of-eval-is-strongly-discouraged-as-it-posses-security-risks

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!