odziem / nasa-project

Node.js NASA Mission Control Final Project
178 stars 360 forks source link

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 #3

Open bary24 opened 2 years ago

bary24 commented 2 years ago

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

valentinesamuel commented 2 years ago

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

ShohanMir commented 1 year ago

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

JamesHHoustonII commented 2 months ago

This is still an issue, anyone find an answer?