Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when using TypeScript V5 #34

Open
niklas-stegmann opened this issue Jun 12, 2023 · 8 comments
Open

Error when using TypeScript V5 #34

niklas-stegmann opened this issue Jun 12, 2023 · 8 comments

Comments

@niklas-stegmann
Copy link

Tested with TypeScript 5.1.3:

The following constructor is no longer valid in TypeScript V5:

constructor(@InjectS3() private readonly s3: S3) {}

Error message:
image

@svtslv
Copy link
Owner

svtslv commented Jun 12, 2023

nestjs/nest#10970

@niklas-stegmann
Copy link
Author

I have installed the latest nestjs version (9.4.2). But the file "s3.decorators.d.ts" is generated incorrectly:

image

@svtslv
Copy link
Owner

svtslv commented Jun 12, 2023

Can you try npm i [email protected]?

@niklas-stegmann
Copy link
Author

Works:
image

The error is no longer displayed

@beeman
Copy link

beeman commented Jul 26, 2023

Can you try npm i [email protected]?

This fixed it for me, thanks!

@polotek
Copy link

polotek commented Sep 26, 2023

Will this fix be released as an official version?

@mridang
Copy link

mridang commented Oct 29, 2023

I've been running into the same issue and the 2.1.0-next.1 release fixed it. When would this be released, please?

@alexpizarroj
Copy link

@svtslv anything we can do to help get this officially released? happy to contribute if necessary

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants