NiceFish的ERROR in AppModule is not an NgModule问题

大漠老师的angular2新手教程项目,nicefish刚开始下下来运行ng serve --prod --aot 是 出现ERROR in AppModule is not an NgModule

这个问题正常是因为你的typescript版本问题,你可以进入项目的package.json文件更改

更改完成后,执行cnpm install 载入

载入完成后在执行ng serve --prod --aot

就可以正常访问了

原文地址:https://www.cnblogs.com/huaji666/p/6837392.html