Disable error overlay in development mode

前端 未结 11 966
长情又很酷
长情又很酷 2020-11-30 08:08

Is there a way to disable the error overlay when running a create-react-app in development mode?

This is the overlay I\'m talking about:

I\'m askin

11条回答
  •  既然无缘
    2020-11-30 09:08

    There is no option for it.

    But, if you strongly wanted to disable modal window, just comment out this line

    https://github.com/facebook/create-react-app/blob/26f701fd60cece427d0e6c5a0ae98a5c79993640/packages/react-dev-utils/webpackHotDevClient.js#L173

提交回复
热议问题