Hola
me da error al hacer click en el menu en Productos (el error salta en el servidor).
Yarn dev al proyecto, levanta perfecto.
node index.js en el webserver también
Server is running in port 8080
> Hago clic en productos
y en el terminal del servidor da este error…
C:\…\…\my-bdd-server\node_modules\pg\lib\client.js:132
const error = this._ending ? new Error(‘Connection terminated’) : new Error(‘Connection terminated unexpectedly’)
Error: Connection terminated unexpectedly
at Connection.<anonymous> (C:\Users\68masn\Desktop\curso\my-bdd-server\node_modules\pg\lib\client.js:132:73)
at Object.onceWrapper (node:events:641:28)
at Connection.emit (node:events:527:28)
at Socket.<anonymous> (C:\Users\68masn\Desktop\curso\my-bdd-server\node_modules\pg\lib\connection.js:107:12)
at Socket.emit (node:events:539:35)
at endReadableNT (node:internal/streams/readable:1345:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21)
[nodemon] app crashed – waiting for file changes before starting…
No se que esta fallando.
Saludos
Miguel