You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
you can add react-dev-utils to your package.json and then add 'react-dev-utils/webpackHotDevClient' to your entry (before your app's starting point) - e.g.:
Note that since v2.3.0, you can use overlay: true in your devServer config. This is essentially the same as react-dev-utils.
Reacted by apple mate, Rene Hangstrup Møller, Bastian Krol, hexpunk, Arun R, Dan Pastusek, wildeyes, Nic Mulvaney, Ali Torki, JackPot and 35 more
Reacted by apple mate, Bastian Krol, Alex, Mark Rinkel, Vishal Sherathiya, Aakash, Mehdi Dehghani, Neil de Carteret, Hussien Khayoon, Drew Rodrigues and 1 more
Reacted by Ali Torki, Aljóna Đukić, Alex, Kris Kaczor, Sunit Jindal, Mark Rinkel, Zack Creach, Vishal Sherathiya, Aakash and Hussien Khayoon
Reacted by Mehdi Dehghani
Reacted by Ali Torki, Aljóna Đukić, Alex, Mark Rinkel, ELFrontEnd, Vishal Sherathiya, Aakash, Yuya Tanaka, Neil de Carteret, Andrzej and 2 more
Activity
SpaceK33z commentedon Aug 21, 2016
If you use
http://localhost:7770, you'll get those errors like that. It means the app itself will be in an iframe though.If you want to build this in your app, take a look at #542.
SpaceK33z commentedon Sep 4, 2016
I'm closing this issue because of inactivity. Feel free to comment, and we can always re-open it again.
applemate commentedon Sep 27, 2016
I don't see how the reference #542 suggest a solution for this issue. Unless I don't understand it correctly.
SpaceK33z commentedon Sep 27, 2016
create-react-app actually implemented exactly what you want two days ago: react/create-react-app#744. You could copy the code from there.
lalitkapoor commentedon Mar 6, 2017
you can add
react-dev-utilsto yourpackage.jsonand then add'react-dev-utils/webpackHotDevClient'to your entry (before your app's starting point) - e.g.:SpaceK33z commentedon Mar 6, 2017
Note that since v2.3.0, you can use
overlay: truein yourdevServerconfig. This is essentially the same as react-dev-utils.mikeaustin commentedon Oct 17, 2017
overlay: true doesn't seem to do anything for me. Am I doing something wrong?
"webpack-dev-server": "^2.9.2"
applemate commentedon Oct 18, 2017
overlay: truedoes work for me. Not all errors will be shown as overlaymikeaustin commentedon Oct 22, 2017
I have seen in rare occurrences. I thought it would be shown for all and any errors, but that doesn't seem to be the case.
mikeaustin commentedon Feb 2, 2018
Ahh, it doesn't seem to capture runtime errors...?
"Uncaught ReferenceError: x is not defined"
"Uncaught TypeError: window.foo is not a function"
etc...
JerryChin commentedon Nov 26, 2018
Can't capture runtime errors, what a big disappointment.
duartealexf commentedon May 22, 2019
That does not make sense, of course it should not capture runtime errors!
What are try/catch blocks for, anyway?
dfontenot commentedon Feb 27, 2023
For anyone with webpack 5.75.0 that is trying to enable / disable this feature: