Meteor和Iron路由器出错

时间:2015-05-22 23:27:10

标签: meteor iron-router

我正在浏览Discover Meteor的书,并且已经开始添加Iron Router。

我使用了$ meteor add iron:router,现在正在运行最新版本的meteor(1.1.0.2)和铁路由器(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 add iron:router代替mrt add iron:router,但即使这样做,应用仍然会崩溃。

0 个答案:

没有答案