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
Compatibility with React-Refresh #1150
Comments
@hlehmann Here's what I found before adding React Cosmos into the mix:
So I tried the other example, the one you mentioned.
Am I doing something wrong? I wanted to test React Refresh before I add React Cosmos, but none of the examples seem to work. |
to make the wds example work you need to fix in both case I get the warning message but react refresh works with |
Managed to get RC working in the react-refresh repo. Here are the steps I took:
{
"globalImports": ["@pmmmwh/react-refresh-webpack-plugin/src/runtime/ReactRefreshEntry"],
"watchDirs": ["src"]
}
import * as React from 'react';
import App from './App';
export default <App />; But I still get this warning
So I don't really get what's going on. What exactly do you mean by React Refresh works anyway? How are you testing the Refresh capabilities? |
What's wrong?
React-hot-loader is now deprecated and using
https://github.com/pmmmwh/react-refresh-webpack-plugin
works with the "fullscreen" rendering but not with the main interface.Steps to reproduce
1 - Clone https://github.com/pmmmwh/react-refresh-webpack-plugin/tree/master/examples/wds-kitchen-sink
2 - install react-cosmos
3 - update webpack.config.js config with
const ReactRefreshPlugin = require('@pmmmwh/react-refresh-webpack-plugin');
The text was updated successfully, but these errors were encountered: