Angular 2打字稿:无法读取未定义的属性newLine

2023-12-11

我正在使用 Angular-CLI 来运行 Angular 2,为了运行,我在所有 Angular 2 项目中出现模块构建失败“无法读取未定义的属性 newLine”错误后,在命令提示符中执行 ng 服务。

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)

@多webpack-dev-服务器/客户端?http://本地主机:4300/./src/main.ts

我跟着角度 cli 问题,我仍然无法修复,我是 Angular 2 的新手,请帮助我


更改 devDependency 从"angular-cli": "1.0.0-beta.28.3" to "@angular/cli": "1.0.0-beta.30"

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

Angular 2打字稿:无法读取未定义的属性newLine 的相关文章

随机推荐