Skip to content

Conversation

@rossta
Copy link
Contributor

@rossta rossta commented Feb 19, 2021

There were two issues: the webpacker gem version was out-of-date with the @rails/webpacker NPM package and the config/webpacker.yml was missing the critical option to enable auto-refresh for webpack 5 (with which Webpacker 6 integrates).

Note: the beta Webpacker releases are more recent, but Bundler treats the pre release as the primary release. In this case, you want the beta release which has the fixes you need.

Webpacker 6 will provide loader rules by default when css webpack
dependencies are detected. The custom loader rules were not set up
correctly to work with the rest of the webpack config.

Fixes @rails/webpacker issue #2916
@rafath
Copy link
Owner

rafath commented Feb 20, 2021

WoooHoooo :D It worked as a charm!!! Thank you for your time and patient and for solving this issue. <3

@rafath rafath merged commit 109da8e into rafath:master Feb 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants