我的应用程序有问题,我正在学习“发现 meteor ”一书,但坦率地说,我有一个错误,我不知道如何修复。
我现在在“路由”一章,当我用
安装 iron-router 包时mrt add iron-router
我的整个应用程序崩溃了,我不知道如何修复它。
错误如下:
TypeError: Template.__create__ is not a function
TypeError: Parent is undefined
TypeError: Iron.Layout is not a constructor
TypeError: Package['iron-router'] is undefined
ReferenceError: Template is not defined
ReferenceError: Template is not defined
ReferenceError: Template is not defined
ReferenceError: Template is not defined
ReferenceError: Template is not defined
ReferenceError: Meteor is not defined
ReferenceError: Meteor is not defined
有什么想法吗?
最佳答案
mrt add iron-router
已弃用
试试
meteor 添加 iron:router
而不是
关于javascript - MeteorJS Iron Router 安装崩溃应用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28501446/