Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings

I get that error in browser console. In package.json I set this

 "start": "set NODE_ENV=development && node dev-server ./webpack/config",

but it still give same error.I look for minified or min JS file but I can not find any file.It just find this in project import React from 'react';

How can I handle that error?How can I use non minified react file? I am new in NodeJS

like image 819
user1688401 Avatar asked Nov 09 '22 17:11

user1688401


1 Answers

React minifies errors for production builds in order to preserve filesize.

It looks like, despite you setting NODE_ENV=development, you are somehow generating a production build (probably set somewhere in your webpack config file).

You can either figure out how to generate a proper development build (which will output the original error string), or upgrade to React 15.2, whose error strings now include a URL where you can view the original unobfuscated error: https://twitter.com/dan_abramov/status/748969886433546240

like image 161
Ben Vinegar Avatar answered Nov 15 '22 05:11

Ben Vinegar