【发布时间】:2017-09-14 11:25:51
【问题描述】:
我正在开发一个带有电子和角度cli的应用程序2
问题是当我安装其他节点包时。
在开发模式下工作正常,但是当使用电子打包器导出最终应用程序时,它告诉我:
A JavaScript error occurred in the main process
Uncaught Exception:
Error: Can not find module 'name_package'
...
...
...
部分节点包为:jsonfile,async,electron-json-storage
如何在最终应用程序中包含所有节点包?
【问题讨论】:
-
但那是针对 Angular 2 而不是针对 Angular cli,环境配置不同实际上它是用参数 --aot al building 添加的,它不起作用
标签: node.js angular electron angular-cli electron-packager