Meteor应用程序在0.8.3版本之后中断



我的应用程序在0.8.3版本下运行良好,但我试图更新到0.9.2.2版本,因为终端显示:

=> Errors prevented startup:
While building the application:
error: no such package: 'iron-router'
error: no such package: 'spin'
error: no such package: 'momentjs'
error: no such package: 'iron-router-progress'
error: no such package: 'zurb-foundation'
error: no such package: 'accounts-entry'
=> Your application has errors. Waiting for file change.

我尝试了流星更新,终端打印了这个:

This project is at the latest release which is compatible with your current package constraints.

我在.metal中查看了发布文件,上面写着0.8.3,所以我创建了一个新的应用程序,添加了我所有的包,并将我所有的代码粘贴到新的应用中。

当我第一次尝试在新应用程序中输入时,控制台打印了以下错误:

<deprecated> [Router] 'before' is deprecated. Please use 'onBeforeAction' instead. Error

我使用了"onBeforeAction"而不是"before",我再次尝试在新的应用程序中输入,然后什么都没有:服务器和控制台不会打印任何错误,在浏览器中显示的不是我的数据而是[对象对象]

我完全迷路了,所以任何帮助都会很棒。

提前谢谢。

我怀疑使用mrt迁移应用程序会更好。我也遇到过类似的问题,但我只是手动编辑了.meteor/release文件。

至于铁路由器的问题,很可能你使用的是一个相当过时的版本。只要确保通读文档并根据需要进行修复即可。

[object Object]输出的最可能原因是布局模板中使用了yield。确保它看起来像{{> yield}}

最新更新