角度 2 打字稿:无法读取属性换行符未定义



我正在对角度 2 使用 angular-cli,为了运行,我在 ng serve 获取模块构建失败后在命令提示符下执行 ng 服务"无法读取属性换行未定义"错误对于我所有的角度 2 项目。

Module build failed: TypeError: Cannot read property 'newLine' of undefined
at Object.getNewLineCharacter (C:UserstimeboundangularJsonnode_modulestypescriptlibtypescript.js:8062:20)
at Object.createCompilerHost (C:UserstimeboundangularJsonnode_modulestypescriptlibtypescript.js:44978:26)
at Object.ngcLoader (C:UserstimeboundangularJsonnode_modules@ngtoolswebpacksrcloader.js:329:31)

@ multi webpack-dev-server/client?http://localhost:4300/./src/main.ts

遵循了角度cli问题,仍然无法修复,我是角度2的新手,请帮助我

devDependencies 从 "angular-cli": "1.0.0-beta.28.3" 更改为 "@angular/cli": "1.0.0-beta.30"

最新更新