Open maiermic opened 8 years ago
@maiermic Is the babel part of the loader also required for HMR to work? Have you tested this at all with the new version of react-hot-loader
(v3)? It would be great to get typescript+HMR to work out of the box, but I don't have experience with typescript, and hjs-webpack
will get updated to react-hot-loader@3
pretty soon, so I don't want to make changes if they won't work with the new version.
The babel part is not necessary. I have tested it with react-hot-loader@1.3.0
. Let's wait for the stable release of react-hot-loader@3
.
Any update on this, using the workaround posted above and would love to remove that 😄
Cheers!
Still waiting for the stable release of react-hot-loader@3
.
@maiermic I'm getting Module not found: Error: Cannot resolve module 'react-hot'
when trying your workaround. I have copied the config exactly. Any ideas?
Apologies, installing react-hot-loader
to the latest version 1.3.0 fixed it.
I use TypeScript and React and I'd like to hot reload my TypeScript modules, but I get a warning in the console:
I can solve this problem by modifying the TypeScript loader in webpack.config.js
However, I expected that hot reloading of TypeScript would work out of the box in hjs-webpack. I would really appreciate this feature.