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
- Fix webpacker config: https://github.com/rails/webpacker/issues/2699 — committed to pulibrary/orangelight by bess 3 years ago
- Upgrade serialize-javascript to fix CVE-2020-7660 (#2424) * Upgrade serialize-javascript to fix CVE-2020-7660 Fixes these security vulnerabilities: * https://github.com/advisories/GHSA-hxcc-f52p-... — committed to pulibrary/orangelight by bess 3 years ago
@gauravtiwari Rename
resolved_paths => additional_paths
inwebpacker.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!