【发布时间】:2019-07-08 07:08:09
【问题描述】:
我在运行 ng build--prod 时遇到错误。我也尝试运行npm install,但我也遇到了同样的错误。
ERROR in Module build failed: TypeError: Cannot read property 'replace' of undefined
at normalizeBackSlashDirection (D:\angular\blog\node_modules\webpack\lib\RequestShortener.js:15:17)
at new RequestShortener (D:\angular\blog\node_modules\webpack\lib\RequestShortener.js:25:15)
at new Compiler (D:\angular\blog\node_modules\webpack\lib\Compiler.js:136:27)
at Compiler.createChildCompiler (D:\angular\blog\node_modules\webpack\lib\Compiler.js:371:25)
at Compilation.createChildCompiler (D:\angular\blog\node_modules\webpack\lib\Compilation.js:1851:24)
at Object.pitch (D:\angular\blog\node_modules\mini-css-extract-plugin\dist\loader.js:70:43)
【问题讨论】:
-
类似的问题可以在这里找到:stackoverflow.com/questions/59489609/…
标签: webpack angular-cli ng-build