oortcloud / heroku-buildpack-meteorite

MIT License
188 stars 97 forks source link

Error Bundling Router Package #10

Closed brandonhall closed 11 years ago

brandonhall commented 11 years ago

I'm not sure if this issue is related to the BuildPack or the Router package. After creating a new app on Heroku and setting the root url, I use git push heroku master and then this happens:

       Installing smart packages

       Done installing smart packages

       Ok, everything's ready. Here comes Meteor!

       Errors prevented bundling:
       Exception while bundling application:
       Error: The package named router does not exist.
           at _.extend.init_from_library (/tmp/build_16qvd5d60zly6/.meteorite/meteors/meteor/meteor/2d8b41a87cec884489ead138b5dfea31487363f3/app/lib/packages.js:91:13)
           at Object.module.exports.get (/tmp/build_16qvd5d60zly6/.meteorite/meteors/meteor/meteor/2d8b41a87cec884489ead138b5dfea31487363f3/app/lib/packages.js:225:11)
           at self.api.use (/tmp/build_16qvd5d60zly6/.meteorite/meteors/meteor/meteor/2d8b41a87cec884489ead138b5dfea31487363f3/app/lib/bundler.js:94:28)
           at Array.forEach (native)
           at Function._.each._.forEach (/tmp/build_16qvd5d60zly6/.meteorite/meteors/meteor/meteor/2d8b41a87cec884489ead138b5dfea31487363f3/dev_bundle/lib/node_modules/underscore/underscore.js:79:11)
           at Object.self.api.use (/tmp/build_16qvd5d60zly6/.meteorite/meteors/meteor/meteor/2d8b41a87cec884489ead138b5dfea31487363f3/app/lib/bundler.js:93:9)
           at _.extend.init_from_app_dir [as on_use_handler] (/tmp/build_16qvd5d60zly6/.meteorite/meteors/meteor/meteor/2d8b41a87cec884489ead138b5dfea31487363f3/app/lib/packages.js:136:11)
           at _.extend.use (/tmp/build_16qvd5d60zly6/.meteorite/meteors/meteor/meteor/2d8b41a87cec884489ead138b5dfea31487363f3/app/lib/bundler.js:382:11)
           at Object.exports.bundle (/tmp/build_16qvd5d60zly6/.meteorite/meteors/meteor/meteor/2d8b41a87cec884489ead138b5dfea31487363f3/app/lib/bundler.js:707:12)
           at Object.Commands.push.func (/tmp/build_16qvd5d60zly6/.meteorite/meteors/meteor/meteor/2d8b41a87cec884489ead138b5dfea31487363f3/app/meteor/meteor.js:415:28)
           at main (/tmp/build_16qvd5d60zly6/.meteorite/meteors/meteor/meteor/2d8b41a87cec884489ead138b5dfea31487363f3/app/meteor/meteor.js:665:22)
           at /tmp/build_16qvd5d60zly6/.meteorite/meteors/meteor/meteor/2d8b41a87cec884489ead138b5dfea31487363f3/app/meteor/meteor.js:668:3
       Bundled
tar: /app/tmp/repo.git/.cache/bundle.tar.gz: Cannot open: No such file or directory

Any ideas what's going on here?

tmeasday commented 11 years ago

Did you check in your smart.json and smart.lock? It looks like meteorite on heroku doesn't think you're using the router...

brandonhall commented 11 years ago

Yes, it looks like it's good. Here's the smart.lock file:

{
  "meteor": {
    "git": "https://github.com/meteor/meteor.git",
    "branch": "master",
    "commit": "2d8b41a87cec884489ead138b5dfea31487363f3"
  },
  "dependencies": {
    "basePackages": {
      "router": {},
      "font-awesome": {},
      "bafa": {}
    },
    "packages": {
      "router": {
        "git": "https://github.com/tmeasday/meteor-router.git",
        "tag": "v0.3.5",
        "commit": "e8e63db2411204f0a6589b74dd591babbfb2da1a"
      },
      "font-awesome": {
        "git": "https://github.com/nate-strauser/meteor-font-awesome.git",
        "tag": "v0.1.3",
        "commit": "e507577b97827de662866304f8b9d3d553e3912f"
      },
      "bafa": {
        "git": "https://github.com/jackp/BAFA.git",
        "tag": "v0.3.0",
        "commit": "cf8c9b0be42b21cb0203c6d08926529c4e00b0c6"
      },
      "page-js": {
        "git": "https://github.com/tmeasday/meteor-page-js.git",
        "tag": "v1.3.5",
        "commit": "c652f795a86498aa4609ab637a694710421cb218"
      }
    }
  }
}
tmeasday commented 11 years ago

Oh, I mean did you make sure they are checked into your git repo, so that they are getting pushed to heroku..?

brandonhall commented 11 years ago

The smart.lock file is checked in but not the smart.json. I also have .meteor/local in my .gitignore. Is that my problem here?

tmeasday commented 11 years ago

Yes, you need to commit smart.json. .meteor/local should not be committed, that's fine.

brandonhall commented 11 years ago

Great, thanks so much for the help!