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

就可以正常访问了

 

posted @ 2017-05-10 18:06  neeol的博客  阅读(841)  评论(0编辑  收藏  举报