Servidor Node parou de funcionar e apresentou o seguinte ERRO:
11/10/2021
0
Olá, sou nova por aqui e estou precisando de ajuda!
Meu servidor estava rodando normalmente, quando de repente parou e apareceu esse erro:
/mnt/c/Users/taina/Rocket.Q/node_modules/express/lib/router/route.js:202
throw new Error(msg);
^
Error: Route.post() requires a callback function but got a [object Undefined]
at Route.<computed> [as post] (/mnt/c/Users/taina/Rocket.Q/node_modules/express/lib/router/route.js:202:15)
at Function.proto.<computed> [as post] (/mnt/c/Users/taina/Rocket.Q/node_modules/express/lib/router/index.js:510:19)
at Object.<anonymous> (/mnt/c/Users/taina/Rocket.Q/src/route.js:13:7)
at Module._compile (node:internal/modules/cjs/loader:1101:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Module.require (node:internal/modules/cjs/loader:1005:19)
at require (node:internal/modules/cjs/helpers:102:18)
at Object.<anonymous> (/mnt/c/Users/taina/Rocket.Q/src/server.js:2:15)
[nodemon] app crashed - waiting for file changes before starting...
Doque se trata?
Obrigada.
Meu servidor estava rodando normalmente, quando de repente parou e apareceu esse erro:
/mnt/c/Users/taina/Rocket.Q/node_modules/express/lib/router/route.js:202
throw new Error(msg);
^
Error: Route.post() requires a callback function but got a [object Undefined]
at Route.<computed> [as post] (/mnt/c/Users/taina/Rocket.Q/node_modules/express/lib/router/route.js:202:15)
at Function.proto.<computed> [as post] (/mnt/c/Users/taina/Rocket.Q/node_modules/express/lib/router/index.js:510:19)
at Object.<anonymous> (/mnt/c/Users/taina/Rocket.Q/src/route.js:13:7)
at Module._compile (node:internal/modules/cjs/loader:1101:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Module.require (node:internal/modules/cjs/loader:1005:19)
at require (node:internal/modules/cjs/helpers:102:18)
at Object.<anonymous> (/mnt/c/Users/taina/Rocket.Q/src/server.js:2:15)
[nodemon] app crashed - waiting for file changes before starting...
Doque se trata?
Obrigada.
Tainara
Curtir tópico
+ 0
Responder
Clique aqui para fazer login e interagir na Comunidade :)