You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
👋 @taesla14 Hello! This is a bug tracker, not a support forum. https://stackoverflow.com/questions/tagged/webpacker is a place on StackOverflow, which is a community-driven support forum for all things. You may have more luck asking your question, there!
This repository has a Troubleshooting document, but I guess there's a Heroku connection to your issue, as well.
I had some issues with getting all the webpack stuff to work as intended on Heroku and discovered the nodejs buildpack needed to be explicitly added to the app and placed first in order. I followed these steps to get my app working (execute the commands following the %, it's intended to represent a shell prompt, ignore the commands following # they are comments):
% heroku apps:create --buildpack heroku/ruby my-app-name
# optionally set buildpack after heroku app creation
# % heroku buildpacks:set heroku/ruby
% heroku buildpacks:add --index 1 heroku/nodejs
% heroku buildpacks
% git checkout -b main
% git add .
% git commit -m "initial check-in"
% git push heroku main
``I wanted to deploy my app to heroku.
But i got this error message and failed.
Is there anyone know how to solve it?
remote: Compiling… remote: Compilation failed: remote: error Command "webpack" not found. remote: remote: yarn run v1.22.4 remote: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. remote: remote: remote: ! remote: ! Precompiling assets failed. remote: ! remote: ! Push rejected, failed to compile Ruby app. remote: remote: ! Push failed remote: Verifying deploy... remote: remote: ! Push rejected to ancient-cove-39153. remote: To https://git.heroku.com/ancient-cove-39153.git ! [remote rejected] master -> master (pre-receive hook declined) error: failed to push some refs to 'https://git.heroku.com/ancient-cove-39153.git'
The text was updated successfully, but these errors were encountered: