nasa-project icon indicating copy to clipboard operation
nasa-project copied to clipboard

cannot load the frontend after building the production file using react build scripts, I have been stuck with this all day , if anyone can help with it , please write the solution in the comments

Open bary24 opened this issue 2 years ago • 3 comments

Error: Minified React error #321; visit https://reactjs.org/docs/error-decoder.html?invariant=321 for the full message or use the non-minified dev environment for full errors and additional helpful warnings. at Object.ai (main.d5cd5a52.js:2:329928) at t.useState (main.d5cd5a52.js:2:422732) at main.d5cd5a52.js:2:471593 at oi (2.acf50103.chunk.js:2:164940) at Wu (2.acf50103.chunk.js:2:217398) at Pl (2.acf50103.chunk.js:2:204572) at Sl (2.acf50103.chunk.js:2:204500) at Ol (2.acf50103.chunk.js:2:204363) at yl (2.acf50103.chunk.js:2:201329) at 2.acf50103.chunk.js:2:150708 uu @ react-dom.production.min.js:216

bary24 avatar May 01 '22 22:05 bary24

have you tried reinstalling the node_modules folder OR you compare your code with that of the instructor

valentinesamuel avatar Sep 18 '22 11:09 valentinesamuel

Provably you importing useEffect from the wrong place. Import useEffect: import React, {useEffect} from 'react';

ShohanMir avatar Mar 08 '23 19:03 ShohanMir

This is still an issue, anyone find an answer?

JamesHHoustonII avatar Jul 17 '24 17:07 JamesHHoustonII