I’m encountering minified React errors in an astrojs (v4.8) project. I would like to use the non-minified dev React environment but haven’t been able to achieve it.
I tried to set NODE_ENV=development astro dev
but that didn’t help.
Here’s the console log I’m getting:
<code>Minified React error #425; visit https://reactjs.org/docs/error-decoder.html?invariant=425
for the full message or use the non-minified dev environment
for full errors and additional helpful warnings.
Error: Minified React error #425;
at lr (http://localhost:3000/_astro/index.i-Iz0isD.js:22:68)
at ff (http://localhost:3000/_astro/index.i-Iz0isD.js:24:16017)
at ha (http://localhost:3000/_astro/index.i-Iz0isD.js:24:39790)
...
</code>
<code>Minified React error #425; visit https://reactjs.org/docs/error-decoder.html?invariant=425
for the full message or use the non-minified dev environment
for full errors and additional helpful warnings.
Error: Minified React error #425;
at lr (http://localhost:3000/_astro/index.i-Iz0isD.js:22:68)
at ff (http://localhost:3000/_astro/index.i-Iz0isD.js:24:16017)
at ha (http://localhost:3000/_astro/index.i-Iz0isD.js:24:39790)
...
</code>
Minified React error #425; visit https://reactjs.org/docs/error-decoder.html?invariant=425
for the full message or use the non-minified dev environment
for full errors and additional helpful warnings.
Error: Minified React error #425;
at lr (http://localhost:3000/_astro/index.i-Iz0isD.js:22:68)
at ff (http://localhost:3000/_astro/index.i-Iz0isD.js:24:16017)
at ha (http://localhost:3000/_astro/index.i-Iz0isD.js:24:39790)
...
Astrojs uses vite under the hood.