judo-heroes-2 icon indicating copy to clipboard operation
judo-heroes-2 copied to clipboard

sh: 1: webpack: not found

Open Raidus opened this issue 7 years ago • 5 comments

Hi!

I've followed along your tutorial. Everything works on the local machine. But deploying to heroku doesn't work in my case. It seems webpack is not installed.

How did you install webpack your heroku dyno?

Kind regards

Raidus avatar Oct 29 '17 23:10 Raidus

I figured out, that I need to set the NPM_CONFIG_PRODUCTION to false at heroku. This Issue can be closed :-)

Raidus avatar Oct 30 '17 10:10 Raidus

Hey @Raidus, are you using the build pack specified in the app.json file?

lmammino avatar Oct 30 '17 14:10 lmammino

Hey @lmammino, I'll think so, because it's in the heroku backend, too. I think heroku will automatically look up for the app.json if I push it to heroku?

Raidus avatar Oct 30 '17 17:10 Raidus

That's the part that I am not so sure about.

For sure that will happen if you use the "deploy to Heroku" button in the readme, but I am not sure the same happens if you just push the repo to your Heroku account.

Anyway, you can simply check in your project settings in Heroku if a custom build pack is being used.

Let me know :)

lmammino avatar Oct 30 '17 17:10 lmammino

your custom build pack was automatically added. at least it was added in the project settings :-)

Raidus avatar Oct 31 '17 11:10 Raidus