I’m having trouble deploying my latest PR. The main branch is okay.
When attempting to deploy, an error log is generated:
Jul 11 09:50:16 AM ==> Cloning from GitHub - flaviosoliver/todo-gym-api: API/Back-end da aplicação To-do Gym. Uma aplicação web para controle de treinos, rotinas, evolução física e musculação na academia, além de demonstração da execução de exercícios físicos. Desenvolvida com TypeScript em NodeJS com o framework Nest.…
Jul 11 09:50:17 AM ==> Checking out commit 3bbe6ede068792a92378db9615efa9a8e0d76439 in branch feature-plans
Jul 11 09:50:20 AM ==> Using Node version 14.17.0 (default)
Jul 11 09:50:20 AM ==> Docs on specifying a Node version: https:// render .com /docs/node-version
Jul 11 09:50:20 AM ==> Running build command ‘npm install’…
Jul 11 09:50:55 AM
Jul 11 09:50:55 AM > es5-ext@0.10.62 postinstall /opt/render/project/src/node_modules/es5-ext
Jul 11 09:50:55 AM > node -e “try{require(‘./_postinstall’)}catch(e){}” || exit 0
Jul 11 09:50:55 AM
Jul 11 09:50:56 AM
Jul 11 09:50:56 AM > @compodoc/compodoc@1.1.21 postinstall /opt/render/project/src/node_modules/@compodoc/compodoc
Jul 11 09:50:56 AM > opencollective-postinstall || exit 0
Jul 11 09:50:56 AM
Jul 11 09:50:56 AM
Jul 11 09:50:56 AM > @nestjs/core@9.4.3 postinstall /opt/render/project/src/node_modules/@nestjs/core
Jul 11 09:50:56 AM > opencollective || exit 0
Jul 11 09:50:56 AM
Jul 11 09:50:56 AM Thanks for installing nest
Jul 11 09:50:56 AM Please consider donating to our open collective
Jul 11 09:50:56 AM to help us maintain this package.
Jul 11 09:50:56 AM
Jul 11 09:50:56 AM Number of contributors: 0
Jul 11 09:50:56 AM Number of backers: 947
Jul 11 09:50:56 AM Annual budget: $141,765
Jul 11 09:50:56 AM Current balance: $9,528
Jul 11 09:50:56 AM
Jul 11 09:50:56 AM Become a partner: https:// opencollective .com/nest/donate
Jul 11 09:50:56 AM
Jul 11 09:50:57 AM added 1090 packages from 655 contributors and audited 1095 packages in 36.357s
Jul 11 09:50:57 AM
Jul 11 09:50:57 AM 142 packages are looking for funding
Jul 11 09:50:57 AM run npm fund
for details
Jul 11 09:50:57 AM
Jul 11 09:50:57 AM found 3 moderate severity vulnerabilities
Jul 11 09:50:57 AM run npm audit fix
to fix them, or npm audit
for details
Jul 11 09:51:00 AM ==> Uploading build…
Jul 11 09:51:11 AM ==> Build uploaded in 9s
Jul 11 09:51:11 AM ==> Build successful
Jul 11 09:51:11 AM ==> Deploying…
Jul 11 09:51:41 AM ==> Using Node version 14.17.0 (default)
Jul 11 09:51:41 AM ==> Docs on specifying a Node version: https:// render .com/ docs/node-version
Jul 11 09:51:41 AM ==> Starting service with ‘npm start’
Jul 11 09:51:43 AM
Jul 11 09:51:43 AM > todo-gym-api@0.0.1 start /opt/render/project/src
Jul 11 09:51:43 AM > nest start
Jul 11 09:51:43 AM
Jul 11 09:51:48 AM internal/modules/cjs/loader.js:888
Jul 11 09:51:48 AM throw err;
Jul 11 09:51:48 AM ^
Jul 11 09:51:48 AM
Jul 11 09:51:48 AM Error: Cannot find module ‘node:events’
Jul 11 09:51:48 AM Require stack:
Jul 11 09:51:48 AM - /opt/render/project/src/node_modules/minipass/dist/cjs/index.js
Jul 11 09:51:48 AM - /opt/render/project/src/node_modules/path-scurry/dist/cjs/index.js
Jul 11 09:51:48 AM - /opt/render/project/src/node_modules/@nestjs/cli/node_modules/glob/dist/cjs/glob.js
Jul 11 09:51:48 AM - /opt/render/project/src/node_modules/@nestjs/cli/node_modules/glob/dist/cjs/index.js
Jul 11 09:51:48 AM - /opt/render/project/src/node_modules/@nestjs/cli/node_modules/glob/dist/cjs/index-cjs.js
Jul 11 09:51:48 AM - /opt/render/project/src/node_modules/@nestjs/cli/node_modules/rimraf/dist/cjs/src/index.js
Jul 11 09:51:48 AM - /opt/render/project/src/node_modules/@nestjs/cli/node_modules/rimraf/dist/cjs/src/index-cjs.js
Jul 11 09:51:48 AM - /opt/render/project/src/node_modules/@nestjs/cli/lib/compiler/workspace-utils.js
Jul 11 09:51:48 AM - /opt/render/project/src/node_modules/@nestjs/cli/actions/build.action.js
Jul 11 09:51:48 AM - /opt/render/project/src/node_modules/@nestjs/cli/actions/index.js
Jul 11 09:51:48 AM - /opt/render/project/src/node_modules/@nestjs/cli/commands/command.loader.js
Jul 11 09:51:48 AM - /opt/render/project/src/node_modules/@nestjs/cli/commands/index.js
Jul 11 09:51:48 AM - /opt/render/project/src/node_modules/@nestjs/cli/bin/nest.js
Jul 11 09:51:48 AM at Function.Module._resolveFilename (internal/modules/cjs/loader.js:885:15)
Jul 11 09:51:48 AM at Function.Module._load (internal/modules/cjs/loader.js:730:27)
Jul 11 09:51:48 AM at Module.require (internal/modules/cjs/loader.js:957:19)
Jul 11 09:51:48 AM at require (internal/modules/cjs/helpers.js:88:18)
Jul 11 09:51:48 AM at Object. (/opt/render/project/src/node_modules/minipass/dist/cjs/index.js:13:23)
Jul 11 09:51:48 AM at Module._compile (internal/modules/cjs/loader.js:1068:30)
Jul 11 09:51:48 AM at Object.Module._extensions…js (internal/modules/cjs/loader.js:1097:10)
Jul 11 09:51:48 AM at Module.load (internal/modules/cjs/loader.js:933:32)
Jul 11 09:51:48 AM at Function.Module._load (internal/modules/cjs/loader.js:774:14)
Jul 11 09:51:48 AM at Module.require (internal/modules/cjs/loader.js:957:19) {
Jul 11 09:51:48 AM code: ‘MODULE_NOT_FOUND’,
Jul 11 09:51:48 AM requireStack: [
Jul 11 09:51:48 AM ‘/opt/render/project/src/node_modules/minipass/dist/cjs/index.js’,
Jul 11 09:51:48 AM ‘/opt/render/project/src/node_modules/path-scurry/dist/cjs/index.js’,
Jul 11 09:51:48 AM ‘/opt/render/project/src/node_modules/@nestjs/cli/node_modules/glob/dist/cjs/glob.js’,
Jul 11 09:51:48 AM ‘/opt/render/project/src/node_modules/@nestjs/cli/node_modules/glob/dist/cjs/index.js’,
Jul 11 09:51:48 AM ‘/opt/render/project/src/node_modules/@nestjs/cli/node_modules/glob/dist/cjs/index-cjs.js’,
Jul 11 09:51:48 AM ‘/opt/render/project/src/node_modules/@nestjs/cli/node_modules/rimraf/dist/cjs/src/index.js’,
Jul 11 09:51:48 AM ‘/opt/render/project/src/node_modules/@nestjs/cli/node_modules/rimraf/dist/cjs/src/index-cjs.js’,
Jul 11 09:51:48 AM ‘/opt/render/project/src/node_modules/@nestjs/cli/lib/compiler/workspace-utils.js’,
Jul 11 09:51:48 AM ‘/opt/render/project/src/node_modules/@nestjs/cli/actions/build.action.js’,
Jul 11 09:51:48 AM ‘/opt/render/project/src/node_modules/@nestjs/cli/actions/index.js’,
Jul 11 09:51:48 AM ‘/opt/render/project/src/node_modules/@nestjs/cli/commands/command.loader.js’,
Jul 11 09:51:48 AM ‘/opt/render/project/src/node_modules/@nestjs/cli/commands/index.js’,
Jul 11 09:51:48 AM ‘/opt/render/project/src/node_modules/@nestjs/cli/bin/nest.js’
Jul 11 09:51:48 AM ]
Jul 11 09:51:48 AM }
Jul 11 09:51:48 AM npm ERR! code ELIFECYCLE
Jul 11 09:51:48 AM npm ERR! errno 1
Jul 11 09:51:48 AM npm ERR! todo-gym-api@0.0.1 start: nest start
Jul 11 09:51:48 AM npm ERR! Exit status 1
Jul 11 09:51:48 AM npm ERR!
Jul 11 09:51:48 AM npm ERR! Failed at the todo-gym-api@0.0.1 start script.
Jul 11 09:51:48 AM npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
Jul 11 09:51:48 AM
Jul 11 09:51:48 AM npm ERR! A complete log of this run can be found in:
Jul 11 09:51:48 AM npm ERR! /opt/render/.cache/_logs/2023-07-11T12_51_48_814Z-debug.log
My package.json:
“scripts”: {
“prebuild”: “rimraf dist”,
“build”: “nest build”,
“format”: “prettier --write "src//*.ts" "test//.ts"",
“start”: “nest start”,
“start:dev”: “nest start --watch”,
“start:debug”: “nest start --debug --watch”,
“start:prod”: “node dist/main”,
“lint”: "eslint "{src,apps,libs,test}/**/.ts" --fix”,
“test”: “jest”,
“test:watch”: “jest --watch”,
“test:cov”: “jest --coverage”,
“test:debug”: “node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand”,
“test:e2e”: “jest --config ./test/jest-e2e.json”,
“doc:serve”: “npx @compodoc/compodoc -p tsconfig.json -s”
},
“dependencies”: {
“@nestjs/common”: “^9.4.0”,
“@nestjs/config”: “^2.3.2”,
“@nestjs/core”: “^9.4.0”,
“@nestjs/jwt”: “^10.0.3”,
“@nestjs/mongoose”: “^9.2.2”,
“@nestjs/passport”: “^9.0.3”,
“@nestjs/platform-express”: “^9.4.0”,
“@nestjs/swagger”: “^6.3.0”,
“bcryptjs”: “^2.4.3”,
“class-validator”: “^0.14.0”,
“dotenv”: “^16.1.0”,
“jsonwebtoken”: “^9.0.0”,
“mongoose”: “^7.1.1”,
“passport”: “^0.6.0”,
“passport-jwt”: “^4.0.1”,
“passport-local”: “^1.0.0”,
“reflect-metadata”: “^0.1.13”,
“rimraf”: “^3.0.2”,
“rxjs”: “^7.2.0”
},
“devDependencies”: {
“@compodoc/compodoc”: “^1.1.21”,
“@nestjs/cli”: “^9.4.2”,
“@nestjs/schematics”: “^9.1.0”,
“@nestjs/testing”: “^9.4.0”,
“@types/express”: “^4.17.13”,
“@types/jest”: “27.4.1”,
“@types/node”: “^16.0.0”,
“@types/supertest”: “^2.0.11”,
“@typescript-eslint/eslint-plugin”: “^5.0.0”,
“@typescript-eslint/parser”: “^5.0.0”,
“eslint”: “^8.0.1”,
“eslint-config-prettier”: “^8.3.0”,
“eslint-plugin-prettier”: “^4.0.0”,
“jest”: “^27.2.5”,
“prettier”: “^2.3.2”,
“source-map-support”: “^0.5.20”,
“supertest”: “^6.1.3”,
“ts-jest”: “^27.0.3”,
“ts-loader”: “^9.2.3”,
“ts-node”: “^10.0.0”,
“tsconfig-paths”: “^3.10.1”,
“typescript”: “^4.3.5”
},