You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
edit2: I can confirm that with the main branch of webpack-dev-server and some edits to development.js, overlay errors are back
Hi,
I don't know if this is an issue with webpacker itself. With webpacker 5, I was able to see lint errors on the front-end, now I just get "failed to compile" error
How to replicate
Create application
$ rails _6.1.3_ new test-webpacker6-webpack-dev-server --skip-active-record --skip-javascript
$ cd test-webpacker6-webpack-dev-server
$ echo"gem 'webpacker', git: 'https://github.com/rails/webpacker.git'">> Gemfile
$ bundle
$ rails webpacker:install
$ sed -i '3i\ \ root "pages#home"' config/routes.rb
$ sed -i '10i\ \ \ \ <%= javascript_pack_tag "application" %>' app/views/layouts/application.html.erb
$ rails g controller Pages home
Launch bin/webpack-dev-server
Launch the server rails s and navigate to http://localhost:3000/
Save application.js to check that hot reload works ("Hello World from Webpacker" appears in the console)
Make a syntax error in application.js
Save application.js
Before (Webpacker 5)
After (Webpacker 6)
I can still see errors in webpack-dev-server console
The text was updated successfully, but these errors were encountered:
tagliala
changed the title
Webpacker 6: show lint errors on the front-end after hot reload
Webpacker 6: missing errors on the front-end after hot reload
Feb 25, 2021
tagliala
changed the title
Webpacker 6: missing errors on the front-end after hot reload
Webpacker 6: missing overlay errors
Feb 27, 2021
tagliala
changed the title
Webpacker 6: missing overlay errors
Webpacker 6: missing overlay errors (solved in webpack-dev-server 4)
Aug 1, 2021
edit: should be caused by webpack/webpack-dev-server#2786 and fixed in webpack-dev-server v4
edit2: I can confirm that with the main branch of
webpack-dev-server
and some edits todevelopment.js
, overlay errors are backHi,
I don't know if this is an issue with webpacker itself. With webpacker 5, I was able to see lint errors on the front-end, now I just get "failed to compile" error
How to replicate
bin/webpack-dev-server
rails s
and navigate tohttp://localhost:3000/
application.js
to check that hot reload works ("Hello World from Webpacker" appears in the console)application.js
application.js
Before (Webpacker 5)
After (Webpacker 6)
I can still see errors in
webpack-dev-server
consoleRef: #2994
The text was updated successfully, but these errors were encountered: