【发布时间】:2015-02-27 16:23:12
【问题描述】:
所以我已经完成了 todo 和排行榜教程,现在很高兴开始路由 - 似乎铁路由是要走的路,所以我将它安装到我的项目中使用
mrt 添加铁路由器
似乎安装正常,所以我启动了流星并导航到 localhost:3000,我的控制台亮起:
Uncaught TypeError: undefined is not a function helpers.js:141 未捕获的类型错误:无法读取未定义的属性“原型” router.js:61 Uncaught TypeError: undefined is not a function global-imports.js?784bc180a149e4c10dff977a7f114df67d9952c6:3 Uncaught TypeError: Cannot read property 'RouteController' of undefined template.tutorialexample.js?e119ff8df948cfe8167f49eb28794995a594841c:2 Uncaught ReferenceError: Template is not defined tutorialexample.js?a4ef596255404350be2cc45303caea02f934cd17:1 Uncaught ReferenceError: Meteor is not defined
请注意,这是一个默认应用程序,没有碰过任何东西。
所以,如果有人能指出我正确的方向,那就太好了。我确实在某处读到我应该使用 0.8.2 版本的铁路由器 - 然后我确实将我的 smart.json 文件更改为包含:
{
"packages": {
"iron-router": "0.8.2"
}
}
然后做了流星更新等,但仍然没有运气。因此,任何人都可以提供的任何帮助都会很棒。
【问题讨论】:
标签: meteor iron-router