CRUD MySQL y NodeJS - Modulos mysql/promise NOT FOUND #169
Unanswered
LuceroLuciano
asked this question in
Q&A
Replies: 1 comment
-
Hola, creo que se debe a que el paquete que estás usando |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hola a todxs explorers 👋
Tengo un detalle con el CRUD de MySQL y NodeJs. Resulta que el modulo mysql/promise no se encuentra. Según yo, si lo estoy requiriendo en el archivo db.js.
Aquí el código de como lo estoy requiriendo:
Este es el error que me muestra:
Ya revise el package.json para ver si tengo mysql y si esta instalado:
Investigando un poco encontré otra forma de requerir el mysql/promise, asi como se muestra en la imagen:
Si lo hago de esa manera no tengo detalle con el modulo. - Todo se muestra correctamente cuando ingreso al localhost:3000:
Pero si intento acceder a la ruta localhost:3000/lenguajes me muestra un nuevo error:
Busque en el repo pero creo que el sherpa aún no sube este proyecto de MySQL con NodeJS.
Alguien me puede ayudar con ello de favor, Gracias.
Beta Was this translation helpful? Give feedback.
All reactions