2016-06-08 62 views
0

我在ng-admin源代码中做了一些修改,所以我需要使用webpack重建它。编辑源代码后重新编译ng-admin

我安装从所有的package.json节点模块具有$ npm install 然后跑到webpack -d其中所用的webpack.config.js。 我删除了, exclude: /node_modules[\\\/](?!admin-config)/,因为我也需要重建admin-config。

所以现在我把所有的JS,CSS和地图文件, 但是当我尝试运行应用程序,我得到这个错误:

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安装为节点模块。

出了什么问题?

回答

0

那么... 我有一个node_modules文件夹里面的另一个node_modules文件夹本身内的ng-admin文件夹。

+ project 
| index.html 
| admin.js 
| + node_modules 
    | + ng-admin 
    | + node_modules 
     ... 

我摆脱了父母的node_modules文件夹,在我当然指数改变了JS路径,现在一切都建立正确。