【发布时间】:2016-06-08 11:35:18
【问题描述】:
我在ng-admin源代码中做了一些修改,所以我需要使用webpack重建它。
我使用 $ npm install 安装了 package.json 中的所有节点模块
然后运行webpack -d,它使用了webpack.config.js。
我删除了, exclude: /node_modules[\\\/](?!admin-config)/,因为我也需要重建 admin-config。
所以现在我有了所有的 js、css 和 map 文件, 但是当我尝试运行应用程序时出现此错误:
Error: [$injector:modulerr] Failed to instantiate module ng-admin due to:
Error: [$injector:modulerr] Failed to instantiate module ui.select due to:
Error: [$injector:nomod] Module 'ui.select' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument.
我确保 ui.select 已作为节点模块安装。
出了什么问题?
【问题讨论】:
标签: javascript angularjs webpack ng-admin