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

Support TS 5.0 ModuleResolutionKind #439

Closed
wants to merge 3 commits into from

Conversation

xaviergonz
Copy link
Contributor

@xaviergonz xaviergonz commented Feb 22, 2023

Summary

Add support for TS5.0 by using ModuleResolutionKind.Node10 if ModuleResolutionKind.NodeJs is not found
Fixes #436

Details

TS5 renamed ModuleResolutionKind.NodeJs to Node10, so the first one returns undefined, which actually means Classic module resolution

I had to use as any for it to compile. If this project ever uses TS5 as devDependency then the as any will probably need to be reversed.

@xaviergonz
Copy link
Contributor Author

it works with the final version

@xaviergonz xaviergonz closed this Apr 17, 2023
@agilgur5 agilgur5 added solution: tsc behavior This is tsc's behavior as well, so this is not a bug with this plugin scope: upstream Issue in upstream dependency solution: not needed This PR makes changes that are redundant or otherwise not needed labels Jul 8, 2023
@agilgur5
Copy link
Collaborator

agilgur5 commented Jul 8, 2023

Fixed upstream in microsoft/TypeScript#53131 / microsoft/TypeScript#53139

@agilgur5 agilgur5 changed the title support typescript 5 Support TS 5.0 ModuleResolutionKind Jul 8, 2023
@agilgur5 agilgur5 added the kind: regression Specific type of bug -- past behavior that worked is now broken label Jul 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind: regression Specific type of bug -- past behavior that worked is now broken scope: upstream Issue in upstream dependency solution: not needed This PR makes changes that are redundant or otherwise not needed solution: tsc behavior This is tsc's behavior as well, so this is not a bug with this plugin
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Build error after upgrade to TS 5.0 beta
2 participants