TypeError:无法读取属性' CheckOnce'未定义的

时间:2016-07-02 13:43:55

标签: meteor angular angular2-meteor

我试图运行angular2-meteor应用程序,但是,当我在浏览器上打开它时,我收到一个错误:

  

constants.js:66Uncaught TypeError:无法读取属性' CheckOnce'的   未定义

任何人都可以帮助我吗?

1 个答案:

答案 0 :(得分:0)

I met same error.

Like @barbatus said here, location of CheckOnce might have changed.

CheckOnce is from Angular2's ChangeDetectionStrategy. So I solve it by updating from

"@angular/common": "2.0.0-rc.1",
"@angular/core": "2.0.0-rc.1",
"@angular/platform-browser": "2.0.0-rc.1",
"@angular/platform-browser-dynamic": "2.0.0-rc.1",

to

"@angular/common": "2.0.0-rc.4",
"@angular/core": "2.0.0-rc.4",
"@angular/platform-browser": "2.0.0-rc.4",
"@angular/platform-browser-dynamic": "2.0.0-rc.4",