简体   繁体   English

Meteor 模块在 prod 上找不到,在 dev 中工作正常

[英]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.

相关问题 PHP名称空间无法在同一目录的相同名称空间中找到类-在dev中起作用,而不是prod - PHP namespace not finding class in same namespace in same directory - works in dev, not prod 如何在Heroku上运行的Rails 5中启用Hyperstack应用程序? 在我的Dev机器上工作正常 - How to enable Hyperstack app in Rails 5 running on Heroku? Works fine on my Dev machine 序列化对象在我的开发框上工作正常,Heroku给出“TypeError(不能转储匿名类)” - Serialized object works fine on my dev box, Heroku gives “TypeError (can't dump anonymous class Class)” Ruby on Rails-表单未从哈希中填充-仅在heroku中,在本地/开发环境下工作正常 - Ruby on Rails - Form not populating from hash - Only in heroku, works fine on local/dev environment 将服务器部署到 heroku 开发和生产 - Deploy server to heroku both dev and prod Rails应用程序和sqlite(dev)与Postgresql(产品) - Rails app and sqlite (dev) vs postgresql (prod) 在git remotes中找不到远程产品 - remote prod not found in git remotes Javascript不在Heroku上运行,开发正常,其他很好 - Javascript not running on Heroku, dev fine, others fine 在Heroku上找不到parse_rest模块,但在localhost上有效 - parse_rest module not found on Heroku, but works on localhost Gunicorn导入错误:在烧瓶中找不到url_for,但是本机烧瓶运行正常 - Gunicorn import error: url_for not found in flask, but native flask run works fine
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM