1
votes

I have installed gem 'webpacker' and then, commited to the server. However, when I deleted the gem, the new setting haven't been updated on Heroku.

When I run the app:

/app/vendor/bundle/ruby/2.5.0/gems/railties-5.1.6/lib/rails/railtie/configuration.rb:95:in method_missing': undefined methodwebpacker' for # (NoMethodError)

Someone knows how to re-do gem process in the server? Thank you!

2

2 Answers

1
votes

More than likely you still have some config items leftover. Search your application for webpack and webpacker. You may find a webpack folder in your config, at least.

https://github.com/rails/webpacker

I would recommend going through the setup again, to make sure you removed everything.

0
votes

From the error it seems that your Gemfile.lock is not being updated.

First delete the Gemfile.lock on local system Then remove the gem from Gemfile on local system. Then bundle on local system with the gem in Gemfile removed.

Commit and Push to Heroku.

Hope it helps!!