Reputation: 11
On Production getting this error cant able to resolve.
react-dom.production.min.js:216 Error: Minified React error #301; visit https://reactjs.org/docs/error-decoder.html?invariant=301 for the full message or use the non-minified dev environment for full errors and additional helpful warnings.
In react site saying due to re rendering but our code not much re rendering. This issue blocking our application. its happening only in our production environment
Upvotes: 1
Views: 1121
Reputation: 38601
Today I am facing the similiar issue. Fisrt I run the code in develop mode and the console will show more detail info about this issue, in my situation. The develop mode shows error info:
Error handled by React Router default ErrorBoundary: Error: img is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`
I put some child element in img tag like this:
{avatarUrl ? <img className="avatarImg" src={avatarUrl} onClick={avatarClick} /> : <img className="avatarImg" src={avatarImg} onClick={avatarClick} >Me</img>}
remove the Me
will fixed this issue.
Upvotes: 0