Last week, I had a problem with the @normal gust object being undefined. I discovered that the issue was related to the reflect-metadata version not matching the one used by the typeorm package. To address this, I downgraded typeorm to version 0.3.19, which resolved the issue.
However, today, I encountered the same problem again, and unfortunately, the previous solution didn't work. After seeking help on the support channel, I learned of another solution that seemed to work for others: upgrading the reflect-metadata version to ^0.2.1. Despite trying this, my @normal gust body remains undefined.
"dependencies": {
"@hapi/joi": "^17.1.1",
"@nestjs/common": "^10.3.3",
"@nestjs/config": "^3.2.0",
"@nestjs/core": "^10.3.3",
"@nestjs/mapped-types": "^2.0.5",
"@nestjs/platform-express": "^10.0.0",
"@nestjs/platform-fastify": "^10.3.3",
"@nestjs/typeorm": "^10.0.2",
"class-transformer": "^0.5.1",
"class-validator": "^0.14.1",
"mysql2": "^3.9.2",
"reflect-metadata": "^0.2.1",
"rxjs": "^7.8.1",
"typeorm": "^0.3.20"
},