Angular 2 RC.5 Plunker错误:TypeError:core_1.NgModule不是函数 [英] Angular 2 RC.5 Plunker error: TypeError: core_1.NgModule is not a function
本文介绍了Angular 2 RC.5 Plunker错误:TypeError:core_1.NgModule不是函数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
通过执行以下操作,我将Angular 2 Plunker从RC.4升级到RC.5:
I upgraded my Angular 2 Plunker from RC.4 to RC.5 by doing the following:
- 更新了systemjs.config.js以匹配快速启动插件
- 更新了main.ts以匹配快速入门插件
- 创建文件app/app.module.ts,并使用快速入门插件的内容填充
我看不到我的简单的笨蛋需要做的其他任何更改.
I don't see any other changes that are required for my simply plunker.
我一直收到此错误:Error: TypeError: core_1.NgModule is not a function(…)
推荐答案
我在项目中遇到了完全相同的问题.它只能在1台PC上运行,而不能在另一台PC上运行. 原来解决方案很简单:
I hit the exact same problem on my project. It worked on 1 pc, didn't work on another. Turns out the solution was simple:
清除浏览器缓存
这篇关于Angular 2 RC.5 Plunker错误:TypeError:core_1.NgModule不是函数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文