React - Minified exception occurred

前端 未结 10 1444
离开以前
离开以前 2020-12-09 07:54

I have React js installed via NPM and using browserify to manage components in react. When an exception occurs in React, the console shows as

\"Uncau

10条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-09 08:20

    As of version 15.2, production React error messages (NODE_ENV=production) now include a URL that you can visit where you can see the original, unobfuscated error.

    https://twitter.com/dan_abramov/status/748969886433546240

    You should consider upgrading to React 15.2 in order to get access to these error messages. Additionally, some production crash reporting tools automatically unminify these errors for you.

提交回复
热议问题