我的应用程序有问题,我正在学习《发现流星》一书,但是坦率地说,我有一个错误,我不知道如何解决。

我现在在“路由”一章,当我使用

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 add iron:router代替

关于javascript - meteor 铁路由器安装崩溃的应用程序,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/28501446/

10-14 18:41
查看更多