2

Is there a way to disable this screen? I don't want to run the production build yet.

Edit: Under the create-react-app you have the option to do either a development build or a production build. They run on either port :3000 or :5000 respectively. Under the production build this screen is disabled when an error occurs. When in the development build, this screen occurs when an error happens or when a crash is about to happen. The problem is that I want to run this under the development build BUT without this error screen to show up when an error happens. Why not just fix the error? Im going to, but because this will be client facing I don't want this screen to show up when an error happens.

enter image description here

39fredy
  • 1,923
  • 2
  • 21
  • 40
  • Why not just fix the error? – bamtheboozle Oct 19 '17 at 14:34
  • The issue is that the production build runs on port 5000. And the front-end is communicating to a backend express server and for some reason it only works when the front end is running on port 3000. I wanted to suppress the warning while I find a fix. – 39fredy Oct 19 '17 at 14:48
  • 2
    I voted to reopen, but you may ignore that request. I found this question helpful because I was working on an Error boundary and Error view where the overlay isn't helpful while developing on the Error view. But there's another question that is more suitable in this context. Here it is: https://stackoverflow.com/questions/46589819/disable-error-overlay-in-development-mode – Christiaan Westerbeek Oct 31 '18 at 10:20
  • I have one answer for this just reload the window once – Yasharth Dubey Jul 15 '21 at 03:14

1 Answers1

8

As of right now, you can't disable the error overlay in create-react-app.

Until you fix the error, you can click the "X" on the top-right corner to close the overlay.

You can also open an issue on https://github.com/facebookincubator/create-react-app to ask for a way to disable it.

Gael Du Plessix
  • 493
  • 1
  • 5
  • 7