[Vuejs]-Ruby on Rails App rails fails to push to heroku; webpacker error

0👍

If you scroll down the deploy errors from Heroku it says.. (In development you’re going to have to read a lot of errors so get used to searching up terms and getting a complete understanding of what the errors are saying)

So it says

Running bundle install..
Your Gemfile lists the gem pg.. more than once.

So your Gemfile file is composed of the things that are used to install modules/gems when your app runs.

You accidentally listed one of the modules twice (pg/postgres) just remove one of them and it should work.

0👍

It also says

@rails/webpacker@5.2.1: The engine "node" is incompatible. 

Expected version ">=10.17.0". Got "10.15.3"

Found incompatible module.

So try to change the webpack/webpacker version in Gemfile as well.

Leave a comment