加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

npm – React – 发生了最小化的异常

发布时间:2020-12-15 06:31:43 所属栏目:百科 来源:网络整理
导读:我通过NPM安装了React js,并使用browserify来管理组件的反应。当React中发生异常时,控制台显示为 “Uncaught Error: Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.”
我通过NPM安装了React js,并使用browserify来管理组件的反应。当React中发生异常时,控制台显示为

“Uncaught Error: Minified exception occurred; use the non-minified dev
environment for the full error message and additional helpful
warnings.”

如何启用完整的错误消息?

本杰明·格伦鲍姆(Benjamin Gruenbaum)在评论中指出,将NODE_ENV设置为开发,解决了这些问题。
set NODE_ENV=development

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读