[英]Re-building ng-admin after editing source code
我對ng-admin源代碼進行了一些修改,因此需要使用webpack對其進行重建。
我安裝了與所有的package.json節點模塊$ npm install
然后跑去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已安裝為節點模塊。
什么地方出了錯?
好吧...我在ng-admin文件夾中有一個node_modules文件夾,而在另一個node_modules文件夾本身中。
+ project
| index.html
| admin.js
| + node_modules
| + ng-admin
| + node_modules
...
我擺脫了父節點node_modules文件夾,當然更改了索引中的js路徑,現在一切都正確構建了。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.