angularjs2启动项目报ERROR in AppModule is not an NgModule解决方法
来源:互联网 发布:淘宝店铺店标素材 编辑:程序博客网 时间:2024/05/19 14:51
如图:
这主要是ts编译器版本问题,一般是因为ts编译器版本过高导致。
解决方式:
- npm uninstall -g typescript
- npm install -g typescript@2.2.2
- tsc -v 查看安装的typescript版本
- 修改package.json中的typescript版本为2.2.2 (注明:不要写为 " ^ 2.2.2")
- 删除node_module
- 重新安装cnpm install
- npm ls typescript 如果都为typecript版本2.2.2说明正确
- ng serve运行
阅读全文
0 0
- angularjs2启动项目报ERROR in AppModule is not an NgModule解决方法
- ERROR in AppModule is not an NgModule
- 【错误处理】Angular报错:ERROR in MessageDetailComponent is not an NgModule
- 报错error C3872: '0x3000': this character is not allowed in an identifier
- error C3872: '0x3000': this character is not allowed in an identifier 解决方法
- error C3872: '0x3000': this character is not allowed in an identifier 解决方法
- VS:error C3872: '0xe044': this character is not allowed in an identifier解决方法
- Liferay7启动报错There is an error in invoking javac.
- 项目启动后,访问报 object is not an instance of declaring class 错误
- 解压tar.gz文件报错gzip: stdin: not in gzip format解决方法或者Error is not recoverable: exiting now
- Latex error "Not enough room in an internal buffer" 解决方法
- There is an error in invoking javac. A full JDK (not just JRE) is required...
- There is an error in invoking javac. A full JDK (not just JRE) is required
- There is an error in invoking javac. A full JDK (not just JRE) is required问题解决
- There is an error in invoking javac. A full JDK (not just JRE) is required问题解决
- PWC6345: There is an error in invoking javac. A full JDK (not just JRE) is required
- Android项目“error: Apostrophe not preceded by \ (”报错解决方法
- Android项目“error: Apostrophe not preceded by \ (”报错解决方法
- 安卓控件集合
- 关于maven web项目创建后,新建jsp文件报错问题
- sps pps分析
- Selenium2(WebDriver):启动浏览器、设置profile&加载插件
- 【Android学习】XML(Extensible Markup Language,可扩展标记语言)
- angularjs2启动项目报ERROR in AppModule is not an NgModule解决方法
- Ubuntu Server安装图形界面全过程
- Angular通信$q服务和promise对象
- qt 运行cmd命令
- curl的另外一种简便写法
- JS/Jquery实现导航栏顶部吸顶效果(一)
- 游戏中常见的作弊方式及对应策略
- Eclipse乱码解决方案总结
- 福利 | 简历模板大放送