簡體   English   中英

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

[英]Meteor module not found on prod, works fine in dev

我最近一直在向我的 meteor 項目添加流量路由器。 在開發中工作正常,我在我的開發服務器上部署了一個 heroku dyno使用 horse buildpack 令人驚訝的是,我的應用程序不起作用,js 控制台記錄了一個錯誤:

Uncaught Error: Cannot find package "kadira:flow-router". Try "meteor add kadira:flow-router".

我通過這樣做將模塊添加到 meteor :

meteor add kadira:flow-router

我是我的 route.jsx 在 /client/route/route.jsx

import { FlowRouter }  from 'meteor/kadira:flow-router';

我不明白為什么我的開發/產品不一樣。 有什么提示嗎? 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. 這是怎么發生的? 有聯系嗎?

好的,我找到了答案:不知何故,我在開發人員上添加軟件包和更新 meteor 並沒有提交給我的 git 存儲庫。 因此,不適用於 heroku 測功機。

我不確定我如何使用 git, .meteor 有什么問題不在 git 中忽略

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM