Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

433
Vistas
Error occured in react.production.min.js after deploying react app to the aws amplify

I've made complex react app but after deploying it on aws amplify i've got these errors, i don't know why i got these errors, on local it works perfectly here is the error log

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 j (react.production.min.js:18)
at t.useContext (react.production.min.js:22)
at oe (hooks.js:18)
at Lu (Body.js:18)
at li (react-dom.production.min.js:157)
at Gl (react-dom.production.min.js:267)
at Is (react-dom.production.min.js:250)
at Bs (react-dom.production.min.js:250)
at Ms (react-dom.production.min.js:250)
at bs (react-dom.production.min.js:243)
ul @ react-dom.production.min.js:216

Uncaught Error: Minified React error #321; visit 
https://reactjs.org/docs/error-decoder.html? react-dom.production.min.js:260 
invariant=321 for the full message or use 
the non-minified dev environment for full errors and additional helpful warnings.
at j (react.production.min.js:18)
at t.useContext (react.production.min.js:22)
at oe (hooks.js:18)
at Lu (Body.js:18)
at li (react-dom.production.min.js:157)
at Gl (react-dom.production.min.js:267)
at Is (react-dom.production.min.js:250)
at Bs (react-dom.production.min.js:250)
at Ms (react-dom.production.min.js:250)
at bs (react-dom.production.min.js:243)

if you know any solution or way to solve these kind of errors please answer it here! thanks :)

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

so here is the answer of this question! in package.json, i moved react and react-dom to peerDependencies

"peerDependencies": {
"react": "^17.0.2",
"react-dom": "^17.0.2"
},

so try this, it should solved the problem ;)

about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda