nestjs / typeorm

TypeORM module for Nest framework (node.js) 🍇
https://nestjs.com
MIT License
1.93k stars 206 forks source link

Cannot read properties of undefined (reading 'retryAttempts') when start the app on production. #1942

Closed iyngaran closed 7 months ago

iyngaran commented 7 months ago

Is there an existing issue for this?

Current behavior

I am using Typeform with NestJS. It works well in development. But when I run the app on production, It says the following error.

2024-03-22T07:18:20.480Z error: Cannot read properties of undefined (reading 'retryAttempts')

I am using the following version.

"@casl/ability": "^6.5.0",
    "@faker-js/faker": "^8.3.1",
    "@nestjs/common": "^9.0.0",
    "@nestjs/config": "^3.0.1",
    "@nestjs/core": "^9.0.0",
    "@nestjs/jwt": "^10.2.0",
    "@nestjs/mapped-types": "^2.0.2",
    "@nestjs/passport": "^10.0.3",
    "@nestjs/platform-express": "^9.0.0",
    "@nestjs/swagger": "^7.1.10",
    "@nestjs/typeorm": "^10.0.2",
    "@types/cookie-session": "^2.0.48",
    "bcrypt": "^5.1.1",
    "class-transformer": "^0.5.1",
    "class-validator": "^0.14.0",
    "cookie-session": "^2.0.0",
    "cross-env": "^7.0.3",
    "moment": "^2.30.1",
    "nest-winston": "^1.9.4",
    "nestjs-typeorm-paginate": "^4.0.4",
    "passport": "^0.7.0",
    "passport-jwt": "^4.0.1",
    "passport-local": "^1.0.0",
    "pg": "^8.11.3",
    "reflect-metadata": "^0.1.13",
    "rxjs": "^7.2.0",
    "sqlite3": "^5.1.6",
    "typeorm": "^0.3.20",
    "typeorm-extension": "^3.2.0",
    "uuid": "^9.0.1",
    "winston": "^3.11.0",
    "winston-daily-rotate-file": "^4.7.1"

image

Minimum reproduction code

https://github.com/iyngaran/billing-api

Steps to reproduce

No response

Expected behavior

It should start the app as it works on development

Package version

0.3.20

NestJS version

9.0.0

Node.js version

20.10.0

In which operating systems have you tested?

Other

No response

kamilmysliwiec commented 7 months ago

Thank you for taking the time to submit your report! From the looks of it, this could be better discussed on our Discord. If you haven't already, please join here and send a new post in the #⁠ 🐈 nestjs-help forum. Make sure to include a link to this issue, so you don't need to write it all again. We have a large community of helpful members, who will assist you in getting this to work.