Meteor 流星和铁路由器的错误

Meteor 流星和铁路由器的错误,meteor,iron-router,Meteor,Iron Router,我正在翻阅《发现流星》一书,并已进入添加铁路由器的部分 我已经使用了meteor AddIron:router,现在正在运行meteor(1.1.0.2)和iron router(1.0.7)的最新版本。正在使用的显微镜应用程序仍然崩溃,出现以下错误: The connection to ws://localhost:3000/sockjs/057/8aq0hvee/websocket was interrupted while the page was loading. ddp.js:1344

我正在翻阅《发现流星》一书,并已进入添加铁路由器的部分

我已经使用了meteor AddIron:router,现在正在运行meteor(1.1.0.2)和iron router(1.0.7)的最新版本。正在使用的显微镜应用程序仍然崩溃,出现以下错误:

The connection to ws://localhost:3000/sockjs/057/8aq0hvee/websocket was interrupted while the page was loading. ddp.js:1344:0

TypeError: Template.__create__ is not a function iron-dynamic-template.js:416:37

TypeError: Parent is undefined meteor.js:225:4

TypeError: Iron.Layout is not a constructor iron-router.js:1475:19

Error: There are multiple templates named '__IronDefaultLayout__'. Each template needs a unique name. templating.js:59:0

TypeError: Layout is not a constructor iron_router.js:1617:17

TypeError: Package['iron:router'] is undefined global-imports.js:3:0

ReferenceError: Template is not defined template.layout.js:2:0

ReferenceError: Template is not defined template.post_item.js:2:0

ReferenceError: Template is not defined template.posts_list.js:2:0

ReferenceError: Router is not defined router.js:1:12

ReferenceError: Template is not defined post_item.js:1:12

ReferenceError: Template is not defined posts_list.js:1:12

ReferenceError: Router is not defined router.js:1:12

ReferenceError: Meteor is not defined posts.js:1:12

ReferenceError: Meteor is not defined main.js:1:12

大多数类似的帖子都说我需要使用meteor AddIron:router,而不是mrt AddIron:router,但是即使这样做了,应用程序仍然会崩溃。

发布代码。很难从错误中分辨出发生了什么。