Erro ao fazer deploy

npm ERR! Failed at the api@1.0.0 start script.
Sep 21 06:40:09 npm ERR!
Sep 21 06:40:09 npm ERR! Exit status 1
Sep 21 06:40:09 npm ERR! api@1.0.0 start: node app
Sep 21 06:40:09 npm ERR! errno 1
Sep 21 06:40:09 npm ERR! code ELIFECYCLE
Sep 21 06:40:09 at bootstrapNodeJSCore (internal/bootstrap/node.js:752:3)
Sep 21 06:40:09 at startup (internal/bootstrap/node.js:279:19)
Sep 21 06:40:09 at Function.Module.runMain (internal/modules/cjs/loader.js:742:12)
Sep 21 06:40:09 at Function.Module._load (internal/modules/cjs/loader.js:507:25)
Sep 21 06:40:09 at Function.Module._resolveFilename (internal/modules/cjs/loader.js:581:15)
Sep 21 06:40:09 Error: Cannot find module ‘/usr/src/app/app’
Sep 21 06:40:09
Sep 21 06:40:09 ^
Sep 21 06:40:09 throw err;
Sep 21 06:40:09 internal/modules/cjs/loader.js:583
Sep 21 06:40:09
Sep 21 06:40:09 > node app
Sep 21 06:40:09 > api@1.0.0 start /usr/src/app

Não entendi o erro, a aplicação roda normalmente em local.

Oi @Clelber_Simoes! Tudo bem?

Ainda está com esse problema? Certeza que executando o npm install e npm start localmente a aplicação funciona? Esses são os comandos executados na Umbler ao fazer o deploy.

Abraço!

@daniel estou enfrentando o mesmo erro.

eu escuto normalmente em minha máquina local com o comando yarn start.

5:04:53 requireStack: [ ‘/usr/src/app/src/routes.js’, ‘/usr/src/app/src/index.js’ ]
May 26 15:04:53 code: ‘MODULE_NOT_FOUND’,
May 26 15:04:53 at Module.require (internal/modules/cjs/loader.js:1042:19) {
May 26 15:04:53 at Function.Module._load (internal/modules/cjs/loader.js:899:14)
May 26 15:04:53 at Module.load (internal/modules/cjs/loader.js:1000:32)
May 26 15:04:53 at Object.Module._extensions…js (internal/modules/cjs/loader.js:1176:10)
May 26 15:04:53 at Module._compile (internal/modules/cjs/loader.js:1156:30)
May 26 15:04:53 at Object. (/usr/src/app/src/routes.js:6:27)
May 26 15:04:53 at require (internal/modules/cjs/helpers.js:77:18)
May 26 15:04:53 at Module.require (internal/modules/cjs/loader.js:1042:19)
May 26 15:04:53 at Function.Module._load (internal/modules/cjs/loader.js:862:27)
May 26 15:04:53 at Function.Module._resolveFilename (internal/modules/cjs/loader.js:980:15)
May 26 15:04:53 - /usr/src/app/src/index.js
May 26 15:04:53 - /usr/src/app/src/routes.js
May 26 15:04:53 Require stack:
May 26 15:04:53 Error: Cannot find module ‘./controllers/profileController’
May 26 15:04:53
May 26 15:04:53 ^
May 26 15:04:53 throw err;
May 26 15:04:53 internal/modules/cjs/loader.js:983
May 26 15:04:53 [nodemon] starting node src/index.js
May 26 15:04:53 [nodemon] watching extensions: js,mjs,json
May 26 15:04:53 [nodemon] watching path(s): .
May 26 15:04:53 [nodemon] to restart at any time, enter rs
May 26 15:04:53 [nodemon] 2.0.4
May 26 15:04:53
May 26 15:04:53 > nodemon src/index.js
May 26 15:04:53 > backend@1.0.0 start /usr/src/app

o que poderia ser?

Estou tendo o mesmo problema