question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

React project gives react-hot-loader error

See original GitHub issue

It 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:closed
  • Created 4 years ago
  • Reactions:2
  • Comments:10

github_iconTop GitHub Comments

2reactions
denkristoffercommented, Oct 7, 2019

You can add hot: true to the devServer configuration object in webpack.config.js to make the error go away:

devServer: {
  headers: {
    'Access-Control-Allow-Origin': '*',
  },
  hot: true,
  https:
    options.https !== undefined
      ? options.https
      : await devCerts.getHttpsServerOptions(),
  port: process.env.npm_package_config_dev_server_port || 3000,
}
0reactions
akrantzcommented, Oct 14, 2019

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found