webpacker: Webpacker 5.2.0 error

After upgrade to 5.2.0, getting the following error when deploying my app.

NoMethodError: undefined method `+' for nil:NilClass
remote:        /tmp/build_9e71071d/vendor/bundle/ruby/2.7.0/gems/webpacker-5.2.0/lib/webpacker/configuration.rb:31:in `additional_paths'
remote:        /tmp/build_9e71071d/vendor/bundle/ruby/2.7.0/gems/webpacker-5.2.0/lib/webpacker/configuration.rb:35:in `additional_paths_globbed'
remote:        /tmp/build_9e71071d/vendor/bundle/ruby/2.7.0/gems/webpacker-5.2.0/lib/webpacker/compiler.rb:93:in `default_watched_paths'
remote:        /tmp/build_9e71071d/vendor/bundle/ruby/2.7.0/gems/webpacker-5.2.0/lib/webpacker/compiler.rb:57:in `watched_files_digest'
remote:        /tmp/build_9e71071d/vendor/bundle/ruby/2.7.0/gems/webpacker-5.2.0/lib/webpacker/compiler.rb:38:in `fresh?'
remote:        /tmp/build_9e71071d/vendor/bundle/ruby/2.7.0/gems/webpacker-5.2.0/lib/webpacker/compiler.rb:43:in `stale?'
remote:        /tmp/build_9e71071d/vendor/bundle/ruby/2.7.0/gems/webpacker-5.2.0/lib/webpacker/compiler.rb:22:in `compile'

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Reactions: 21
  • Comments: 20 (9 by maintainers)

Commits related to this issue

Most upvoted comments

@gauravtiwari Rename resolved_paths => additional_paths in webpacker.yml fix the problem, but is this correct?

I just updated from 5.1.1 to 5.2.1 (both the gem & npm package) and couldn’t get my compile to successfully complete on Heroku deploys until I changed resolved_paths -> additional_paths in my config file.

thanks @swrobel for the solution!