Closed xaviergonz closed 1 year ago
Add support for TS5.0 by using ModuleResolutionKind.Node10 if ModuleResolutionKind.NodeJs is not found Fixes #436
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.
it works with the final version
Fixed upstream in https://github.com/microsoft/TypeScript/issues/53131 / https://github.com/microsoft/TypeScript/pull/53139
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.