Closed Hellenic closed 2 years ago
@Hellenic try bumping up to 5.65.0 which is stable for my use of After.
Tried that version and it seemed fine at first, but quite soon I started getting process in not defined
, so in my case didn't seem to help.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
š Bug report
Current Behavior
I'm having issue with After.js and hot module replacement. Modifying the application in development mode properly brings in the changes to the browser but also gives error in the console, basically requiring page reload.
Expected behavior
I'd expect HMR to work without errors. Plain Razzle.js application without After.js work well and HMR works as expected, so I assume it's After.js related.
Reproducible example
Steps to re-produce:
razzle-master
it should beafter.js-master
npm start
and open the browser. You should see application without any errors in the consoleHome.js
and you'll see your changes appear in the browser, as well asprocess in not defined
error in the consoleMore details of the error
Error in Firefox:
Error in Chrome
While this might not be helpful, here's deeper details of the error when following the stack trace in Chrome:
After receiving this error, after reloading page there's another error which is either
or sometimes simply
GET Home....hot-update.js 404 (Not Found)
Suggested solution(s)
This is not a proper solution, but as a work-around; downgrading Webpack seems to work, as per Razzle.js instructions: https://razzlejs.org/getting-started#dependencies Specifically running
yarn add --dev webpack@4.46.0 html-webpack-plugin@4.5.2
seems to fix the issue.Additional context
Already closed issue in Razzle.js seems somewhat related https://github.com/jaredpalmer/razzle/issues/1187
In conclusion, is this maybe Webpack 5 and possible webpack-dev-server related?
Your environment