After major updates, I started encountering the following errors in my application:
Uncaught Error: Minified React error #418; visit https://reactjs.org/docs/error-
decoder.html?invariant=418 for the full message or use the non-minified dev environment
for full errors and additional helpful warnings.
Uncaught Error: Minified React error #423; visit https://reactjs.org/docs/error-
decoder.html?invariant=423 for the full message or use the non-minified dev environment
for full errors and additional helpful warnings.
These errors don't specify the exact component or code causing the issue, and I'm having trouble pinpointing the source of the problem in my application.
Environment:
Next.js version: 12.3.1 React version: 18.2.0
My question is :
What steps can I take to identify/fix the specific component or code causing these minified React errors?
after a couple of days I was able to finally find 2 solutions to these 2 errors:
import dynamic from 'next/dynamic';
const ExampleComponent = dynamic(() => import("./path/toComponent"));
these 2 methods solved both errors for me, if you decide to choose second option you do not need to downgrade your react version. I hope someone finds these helpful