Need to rebuild & republish to npm to get type from nestjs/common. Typescript 5 @InjectModel raises: Argument of type 'undefined' is not assignable to parameter of type 'string | symbol'.ts #1239
Labels
bug
Something isn't working
Is there an existing issue for this?
Current behavior
Re-opening this issue as the previous one got closed and locked: #1237
The problem is not that my nestjs/common is outdated locally, is that the code in the nestjs/sequelize in npm was not built against the new nest/common. Hence the type inference for the injectModel function is based on the previous version of common, and therefore does not have the added
| undefined
required.Looking at the code here: https://www.npmjs.com/package/@nestjs/sequelize?activeTab=code
sequelize.decorators.d.ts
is properly inferred against the last nestjs/commonMinimum reproduction code
N/a
Steps to reproduce
N/A
Expected behavior
N/A
Package version
9.0.0
NestJS version
9.3.12
Node.js version
16.14
In which operating systems have you tested?
Other
My nestJs common is at
9.3.12
(latest version to date)The text was updated successfully, but these errors were encountered: