Closed osdevisnot closed 7 years ago
Hey!
This is known issue Hot reloading modules are currently commented out. It re compiles but doesn't refresh browser. Are you able to send PR for this? I'm currently working on material-ui for Inferno.
I think I found the issue.
Just change require.resolve('react-dev-utils/webpackHotDevClient')
to require.resolve('inferno-dev-utils/webpackHotDevClient')
in packages/inferno-scripts/config/webpack.config.dev.js
Also be sure to uncomment the two lines that were commented out:
// require.resolve('react-dev-utils/webpackHotDevClient'), // new webpack.HotModuleReplacementPlugin(),
Seems you just forgot to update the 'react' keyword to 'inferno' in this instance.
Hey, good to hear! Can you send pull request @joejsx so you get credit for the fix :)
@joejsx created PR for this and it has been merged. This should be resolved by now :)
Can you reproduce the problem with latest npm?
Yes. My environment versions:
Saw these errors while creating an app
Description
What are you reporting?
On freshly created inferno-app, hot reloading for CSS and JS is not working.
Note: create-react-app works correctly for me.
Expected behavior
Page should reload with the latest changes.
Actual behavior
Browser does not refresh automatically.
Environment
Run these commands in the project folder and fill in their results:
npm ls inferno-scripts
(if you haven’t ejected):node -v
:npm -v
:Then, specify:
Max OS Sierra version 10.12.1
Google chrome - Version 57.0.2962.0 canary (64-bit)
Reproducible Demo
Sorry it's just my local experiment project.