使用angular-cli執(zhí)行ng new hello-angular后執(zhí)行ng serve報(bào)如下錯(cuò)誤ERROR in ./src/main.ts Module build failed: TypeError: Cannot read property 'newLine' of undefined at Object.getNewLineCharacter (C:\Users\sunny\Documents\hello-angular\node_modules\typescript\lib\typescript.js:8062:20) at Object.createCompilerHost (C:\Users\sunny\Documents\hello-angular\node_modules\typescript\lib\typescript.js:44978:26) at Object.ngcLoader (C:\Users\sunny\Documents\hello-angular\node_modules\@ngtools\webpack\src\loader.js:171:31)
- 2 回答
- 0 關(guān)注
- 903 瀏覽
添加回答
舉報(bào)
0/150
提交
取消