Clon de Twitter con MERN | 3.5 - Conectando la app con MongoDB Atlas
Luis Montalvo@luismontalvodbf
Este es el error:
UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict
Aqui lo que entiendo es que hay una funcion async sin tener un catch.......y efectivamente en el user.controller.js hay un async sin un catch
lo intente solucionar agregando un try{}catch{}, pero me aparecen otros errores, me podrian dar una mano, muchas gracias.
((COMO CONTEXTO LES COMENTO QUE PREVIAMENTE TUVE UN ERROR QUE DECIA --useFindAndModify , useCreateIndex not supported-- Y LO SOLUCIONES ELIMINANDOLOS DEL mongoose.connect() EN EL INDEX.JS ))