Mic*_*Lis 5 rollup angular2-aot angular
我有运行角2应用程序编译AOT使用汇总说明从angular.io文档问题(链接在此)
据我所知,编译过程进行得很顺利,尽管我将其作为唯一的输出:
?? 'default' is imported from external module 'rollup' but never used
'initializeApp' is not exported by 'node_modules/firebase/firebase-node.js'
'initializeApp' is not exported by 'node_modules/firebase/firebase-node.js'
'app' is not exported by 'node_modules/firebase/firebase-node.js'
'auth' is not exported by 'node_modules/firebase/firebase-node.js'
'database' is not exported by 'node_modules/firebase/firebase-node.js'
'database' is not exported by 'node_modules/firebase/firebase-node.js'
Run Code Online (Sandbox Code Playgroud)
该build.js创建和我有我的index.html指向它和其他所需的文件:
?? 'default' is imported from external module 'rollup' but never used
'initializeApp' is not exported by 'node_modules/firebase/firebase-node.js'
'initializeApp' is not exported by 'node_modules/firebase/firebase-node.js'
'app' is not exported by 'node_modules/firebase/firebase-node.js'
'auth' is not exported by 'node_modules/firebase/firebase-node.js'
'database' is not exported by 'node_modules/firebase/firebase-node.js'
'database' is not exported by 'node_modules/firebase/firebase-node.js'
Run Code Online (Sandbox Code Playgroud)
但是,当我在浏览器中运行我的应用程序时,我得到Uncaught ReferenceError: exports is not defined。
关于如何解决它的任何建议?
| 归档时间: |
|
| 查看次数: |
377 次 |
| 最近记录: |