Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 this issue May 1, 2022 · 3 comments

Comments

@bary24
Copy link

bary24 commented May 1, 2022

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
Copy link

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

@ShohanMir
Copy link

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

@JamesHHoustonII
Copy link

This is still an issue, anyone find an answer?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants