You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using latest @nestjs/swagger with Typescript v4.7 fails at runtime with message Error Nest CLI plugin does not support TypeScript < v4.8
This is quite confusing because the message doesn't mention that this error is from nestjs/swagger and does not get flagged up during dependency installation
Minimum reproduction code
Reproduced privately
Steps to reproduce
yarn install
yarn nest start
Expected behavior
I expect this package to use npm peer dependencies to define supported Typescript versions
I expect this package to mention this package name in the error
Package version
7.3.0
NestJS version
9.0.11
Node.js version
18.13.0
In which operating systems have you tested?
macOS
Windows
Linux
Other
No response
The text was updated successfully, but these errors were encountered:
This is tricky because not everyone who uses @nestjs/swagger uses the Swagger CLI Plugin (hence, the runtime check).
Oh apologies for not being clear. I was not recommend dropping the runtime check. Instead, I think that this runtime check error should be reworded to improve clarification, and additionally peerDependency added to generate an additional warning at installation time
What I'm trying to say is that adding a peer dependency might be confusing - AFAIK most people still dont use the CLI plugin, meaning, most would receive a misguided warning about their TS incompatibility even if it doesn't apply to their projects.
When it comes to rewording the error message, I'm all in! Would you like to create a PR for this?
Is there an existing issue for this?
Current behavior
Using latest
@nestjs/swagger
with Typescript v4.7 fails at runtime with messageError Nest CLI plugin does not support TypeScript < v4.8
This is quite confusing because the message doesn't mention that this error is from
nestjs/swagger
and does not get flagged up during dependency installationMinimum reproduction code
Reproduced privately
Steps to reproduce
yarn install
yarn nest start
Expected behavior
Package version
7.3.0
NestJS version
9.0.11
Node.js version
18.13.0
In which operating systems have you tested?
Other
No response
The text was updated successfully, but these errors were encountered: