Angular 2 polyfills麻烦
所以我有一个硬盘故障,失去了一切,但当然github救援。 我最近完成了我的第一个Angular 2项目,并做了一个git克隆来恢复它,每次我尝试运行服务器我得到这个错误…
ERROR in ./src/main.ts Module build failed: TypeError: Cannot read property 'newLine' of undefined at Object.getNewLineCharacter (D:\GitHub\sandbox\meadowbrook_acres\angular-src\node_modules\typescript\lib\typescript.js:8062:20) at Object.createCompilerHost (D:\GitHub\sandbox\meadowbrook_acres\angular-src\node_modules\typescript\lib\typescript.js:44978:26) at Object.ngcLoader (D:\GitHub\sandbox\meadowbrook_acres\angular-src\node_modules\@ngtools\webpack\src\loader.js:338:33) @ multi webpack-dev-server/client?http://localhost:4200 ./src/main.ts
./src/polyfills.ts中的错误模块构build失败:TypeError:无法读取Object.getNewLineCharacter(D:\ GitHub \ sandbox \ meadowbrook_acres \ angular-src \ node_modules \ typescript \ lib \ typescript.js)中未定义的属性'newLine' (D:\ GitHub \ sandbox \ meadowbrook_acres):8062:20)在Object.createCompilerHost(D:\ GitHub \ sandbox \ meadowbrook_acres \ angular-src \ node_modules \ typescript \ lib \ typescript.js:44978:26) \ angular-src \ node_modules \ @ngtools \ webpack \ src \ loader.js:338:33)@ multi。/ src / polyfills.ts`
我做了一个npm安装在项目文件夹和angular度的src文件夹,然后做了一个npm安装typings –global之后谷歌search这个错误,仍然不允许我做任何事情。 任何其他的想法,我可以做什么?
- 浏览器的CORS设置 – >网站 – > API服务器
- nodejs restful api返回错误状态-1在离子angularjs $ http
- 使用Angularfire,Passport和Express / Nodejspipe理会话
- Monit不发送警报消息,并给出错误“Alert handler failed,retry scheduled for next cycle”
- 开始使用Node.js,angular.js和MongoDB,build模关系和其他斜坡提示
- 如何在Morris JSgraphics的Angular JS中创build一个指令
- 如何使用Nodejs + angular JS和MySQL创builddynamic树视图
- CORS错误:请求标头字段预检响应中的Access-Control-Allow-Headers不允许授权
- 我怎么能在angularjs中的服务的两个function之间传递数据