When I try to deploy to Heroku, I receive this error. Command "webpack" not found.
I’ve tried solutions like looking into yarn and installing a package.json in the root. I’m not completely sure but I feel the problem could lie in my package.json needing additional information regarding ‘webpack’.
I’m having this same issue still. I’ve tried adding the build packs, I’ve tried without them. I’ve tried moving dependencies from devDependencies, no dice there either. When I run heroku run bash, and run which webpack, I get nothing. I’m seeing this issue all over github, but no solutions seem to exist that work for everyone.
I had this problem when upgrading from an older version of Rails. The issue for me was there wasn’t a bin/yarn script. Just generate a new rails project and copy the yarn file across to your site.