React project gives react-hot-loader error
See original GitHub issueIt seems like starting the default react project with npm run dev-server will give the following errors related to react-hot-loader:
React-Hot-Loader: misconfiguration detected, using production version in non-production environment.
React-Hot-Loader: Hot Module Replacement is not enabled.
This is for an Outlook Add-In with React and Javascript
Issue Analytics
- State:
- Created 4 years ago
- Reactions:2
- Comments:10
Top Results From Across the Web
Error: Can't resolve 'react-hot-loader/webpack' - Stack Overflow
when I built React project it gives following error. What can i do to solve this problem.I use latest react-hot-loader.
Read more >gaearon/react-hot-loader - Gitter
I trying to enable react-hot-reloader in my project and getting only one reload, second reload erasing my components from mount point - that...
Read more >Create an Error Boundary for a React App | egghead.io
Seems that react-hot-loader is catching the error and showing their own error boundary. If I view the built version ( npm run build...
Read more >How to get an error overlay with React Hot Loader - Jakob Lind
It's almost as good as Create React App! Enable it for both warnings and errors. This gives an error overlay when there are...
Read more >React Hot Loader | Best of JS
App.js import { hot } from 'react-hot-loader/root'; const App = () => <div>Hello ... React-Hot-Load will throw an error, asking you to use...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
You can add
hot: true
to thedevServer
configuration object inwebpack.config.js
to make the error go away:Thanks for coming up with a solution. I’ve moved this issue over to https://github.com/OfficeDev/Office-Addin-TaskPane-React/issues/39.
This is the repository for the TypeScript version of the React template (which I presume will also need this fix), and we then merge changes into the JavaScript version in https://github.com/OfficeDev/Office-Addin-TaskPane-React-JS.