[英]Meteor module not found on prod, works fine in dev
I've recently been adding flow router to my meteor project.我最近一直在向我的 meteor 项目添加流量路由器。 Works fine in dev, I deploy on my dev server, a heroku dyno using horse buildpack .
在开发中工作正常,我在我的开发服务器上部署了一个 heroku dyno使用 horse buildpack 。 And surprise, my app doesn't work, the js console logs an error:
令人惊讶的是,我的应用程序不起作用,js 控制台记录了一个错误:
Uncaught Error: Cannot find package "kadira:flow-router". Try "meteor add kadira:flow-router".
I've added the module to meteor by doing this:我通过这样做将模块添加到 meteor :
meteor add kadira:flow-router
I'm my route.jsx is in /client/route/route.jsx我是我的 route.jsx 在 /client/route/route.jsx
import { FlowRouter } from 'meteor/kadira:flow-router';
I don't get why my dev/prod are not the same.我不明白为什么我的开发/产品不一样。 Any hint?
有什么提示吗? I didn't find any error in the deployment logs on heroku I also realized something, when heroku builds the prod, it seems to be using Meteor 1.8.1 while I've updated my meteor version to the last 1.10.smthg.
I didn't find any error in the deployment logs on heroku I also realized something, when heroku builds the prod, it seems to be using Meteor 1.8.1 while I've updated my meteor version to the last 1.10.smthg. How does that happen?
这是怎么发生的? Is it linked?
有联系吗?
ok I found the answer: somehow my adding packages and updating meteor on my dev wasn't being committed to my git repo.好的,我找到了答案:不知何故,我在开发人员上添加软件包和更新 meteor 并没有提交给我的 git 存储库。 Hence, not to the heroku dyno.
因此,不适用于 heroku 测功机。
I'm not sure what's the issue on how I use git, .meteor is not in the git ignore我不确定我如何使用 git, .meteor 有什么问题不在 git 中忽略
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.