-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Webpacker HMR looking for json with content-type text/html with a 404 cause page reload #1375
Comments
@AirWick219 What version of Rails are you using? Do you have an example repo somewhere? |
I am on rails 5.1. Let me try to recreate this in my other repo. I faught with this a little bit last night and it seems that the I am not sure why its trying to look for that json in the generated boobstrap file for the other hash. In this case, It's the |
Weird ... You can close this ... While preparing a example repo .. It magically works and the extra json is not there anymore which does not cause the 404. But in order to prevent the page refresh. I have to add the following code in my root level component to remount the latest module since I am using react-rails.
Otherwise, I would get an error in the dev-server
Since webpacker has a issue going on to restrict using |
Great 👍 going to close this one for now. |
I have this exact problem, HMR is looking for a different hash than the one generated on recompile, any ideas why is this happening? |
I have got hmr set up where the webpack-dev-server if returning the correct hot-update.json back and it swapped the module without page reload. but there is an extra hot-update.json with a content-type of text/html that's is not there and throw a 404 which causes the page to reload. I was wondering if you guys have an idea of what that might be ??
webpacker 3.3.1,
webpack-dev-server: 2.11.2
The text was updated successfully, but these errors were encountered: