我正在使用angular-CLI for angular 2,用于运行我在命令提示符下运行服务获取模块构建失败'无法读取属性newLine of undefined'所有角度2项目的错误。
Module build failed: TypeError: Cannot read property 'newLine' of undefined
at Object.getNewLineCharacter (C:\Users\timebound\angularJson\node_modules\typescript\lib\typescript.js:8062:20)
at Object.createCompilerHost (C:\Users\timebound\angularJson\node_modules\typescript\lib\typescript.js:44978:26)
at Object.ngcLoader (C:\Users\timebound\angularJson\node_modules\@ngtools\webpack\src\loader.js:329:31)
@ multi webpack-dev-server / client?http://localhost:4300/ ./src/main.ts
我跟着angular cli issues,仍然无法修复,我更新角2,请帮帮我
答案 0 :(得分:6)
将devDependencies从"angular-cli": "1.0.0-beta.28.3"
更改为"@angular/cli": "1.0.0-beta.30"