Meteor - 更新到v0.9.1后的许多错误

时间:2014-09-08 08:46:31

标签: templates meteor undefined

我一直在研究Meteor项目一个月,然后昨天我被要求更新到Meteor v0.9.1版本。之后,当我使用meteor启动我的应用程序时,它会在客户端控制台上引发很多错误。他们在这里:

Uncaught TypeError: undefined is not a function iron-dynamic-template.js:416
Uncaught TypeError: Cannot read property 'prototype' of undefined helpers.js:139
Uncaught TypeError: undefined is not a function router.js:61
Uncaught TypeError: Cannot read property 'RouteController' of undefined global-imports.js:3
Uncaught ReferenceError: Template is not defined template.layout.js:2
Uncaught ReferenceError: Template is not defined template.header.js:2
Uncaught ReferenceError: Template is not defined template.404.js:2
Uncaught ReferenceError: Meteor is not defined meteor-streams.js:1
Uncaught ReferenceError: Router is not defined route.js:1
Uncaught ReferenceError: Template is not defined layout.js:1
Uncaught ReferenceError: Template is not defined header.js:1
Uncaught TypeError: undefined is not a function about.js:2
Uncaught ReferenceError: Template is not defined chat_box.js:1
Uncaught ReferenceError: Template is not defined chat_rooms.js:1
Uncaught ReferenceError: Template is not defined user_profile.js:1
Uncaught ReferenceError: Meteor is not defined messages.js:1
Uncaught ReferenceError: Meteor is not defined rooms.js:1
Uncaught ReferenceError: Meteor is not defined utilities.js:1
Uncaught ReferenceError: TypingUsersStream is not defined main.js?ddb2df78e0fe11ef747b14020685864d14f8bd03:5
Uncaught ReferenceError: Spacebars is not defined login_buttons_dialogs.html:4

我尝试了很多方法,但它们都不起作用:(希望你们能提供帮助!我将非常感谢。谢谢你的进步!

2 个答案:

答案 0 :(得分:8)

<强>更新 我通过删除iron-router包然后安装iron:router包解决了我的问题。希望这有助于其他人像我一样有问题:)

答案 1 :(得分:0)

这是0.9.1的已知问题,以及Meteor团队发布的修复程序。更新到0.9.1.1应解决这个问题。

https://groups.google.com/forum/#!topic/meteor-talk/nYw4Vyae9rw