Meteor 0.8.0、Iron Router 和 Discover Meteor [英] Meteor 0.8.0, Iron Router and Discover Meteor
问题描述
Meteor 0.8.0 发布了新的 Blaze 渲染,这对于未来来说非常棒.
Meteor 0.8.0 is out with the new Blaze rendering, which is great... for the future.
目前我无法运行由 Iron Router 驱动的应用程序:更新 -> 运行meteor -> 白色浏览器屏幕.我想我会回滚到 0.7.2.但这给了我一种模糊的感觉.就像拥有一台没有互联网连接的新电脑.这些变化有什么解决办法吗?至少对于 Iron Router 而言?
At the present I can't run my Iron Router powered app: updated -> ran meteor -> white browser screen. I guess I'll roll back to 0.7.2. but that gives me a fuzzy feeling. Its like have a new computer with no internet connection. Is there any fix for these changes? At least for Iron Router?
注释注释(虽然在标题中):我正在使用 Discover Meteor 书学习 Meteor,这是一本由 Iron Router 的同一作者撰写的好书;我喜欢它.但是,如果流星变化那么大,我是在浪费时间吗?
Note Comment (although it was in the title): I am learning meteor using the Discover Meteor book, it's a great book written by same author of Iron Router; I love it. However, if meteor changed that much am I wasting my time?
更新@iAmME 的解决方案效果很好!我通过修改 smartpackage 解决了另一种方法,该方法也修复了 Iron-router-progress.只是想发布它,如果它对任何人有帮助:
Update @iAmME's solution works great! I solved it another way that also fixed iron-router-progress by modifying the smartpackage. Just wanted to post it if it helps anyone:
{
"packages": {
"blaze-layout": {},
"iron-router":
{
"git": "https://github.com/EventedMind/iron-router.git",
"branch": "blaze-integration"
},
"iron-router-progress":
{
"git": "https://github.com/Multiply/iron-router-progress.git",
"branch": "blaze-integration"
}
}
}
推荐答案
刚遇到同样的问题,
执行以下操作并正常运行
Did the following and works fine
它发生主要是因为 Iron-router 包和少数其他使用 spark
作为依赖项的包,然后首先重新安装 Iron-router,如下所示>
It occurs mostly because of the iron-router package and few other packages which are using spark
as dependency and first re-install the iron-router like below
meteor remove iron-router
rm -rf packages/iron-router
mrt update
mrt add iron-router
只需重新安装 Iron-router 即可将您更新到新版本,并且它还会随 Iron-router(这是新的模板系统)自动安装 blaze-Layout
.
Just re-installing the iron-router will update you to the new version and also it installs blaze-Layout
automatically with the iron-router(which is the new templating system).
更新 Iron-router 后,即使现在出现 spark
未定义错误,请检查哪个包正在使用 spark
并更新这些包.
After updating iron-router,Even now if you are getting spark
is not defined error,check which package is using spark
and update those packages too.
这篇关于Meteor 0.8.0、Iron Router 和 Discover Meteor的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!