Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

React - Minified exception occurred

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

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

How do I enable full error messages ?

like image 693
Raathigesh Avatar asked Apr 12 '15 07:04

Raathigesh


People also ask

What is Minified error in react?

In the minified production build of React, they avoid sending down full error messages. Instead, we can use the error code to view the full message for full errors and additional helpful warnings. This small tool is meant to mitigate this gap.

What is Minified react Error #152?

The error description is here, you return nothing as result of render method of you react component. Return something else instead of it.


2 Answers

Setting NODE_ENV to development as Benjamin Gruenbaum pointed out in the comment resolved the issues.

set NODE_ENV=development 
like image 197
Raathigesh Avatar answered Oct 05 '22 13:10

Raathigesh


If you are encountering this issue with Karma + Webpack, the following Webpack configuration fixed the issue for me when running tests:

plugins: [     new webpack.DefinePlugin({         'process.env': {             NODE_ENV: JSON.stringify('development')         }     }) ] 
like image 22
Jackson Avatar answered Oct 05 '22 12:10

Jackson