-
-
Notifications
You must be signed in to change notification settings - Fork 431
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
cater for change in resolveTypeReferenceDirective API in TypeScript 4.7 #1422
Conversation
Have requested feedback from @mjbvz to understand whether this would resolve his issue. |
We can see that we have failing tests on typescript@next now that typescript@4.6 has shipped. With this in place, tests pass. We'll likely ship this as v9.2.7 |
Thanks for the quick fix. This does resolve the issue we were hitting |
@johnnyreilly Will this version be ported back to |
There is a webpack 4 branch https://github.com/TypeStrong/ts-loader/tree/webpack-4 Haven't touched it in a year, but theoretically it's just a case of applying the Publishing old versions is a bit of a faff but doable. If you were able to help out with an initial PR against the webpack 4 branch I could handle the rest? |
Hey @dragomirtitian I thought I'd try and make things easier by kicking off a new branch cut from the webpack-4 branch and getting it caught up to TypeScript 4.6. It's called: webpack-4-resolveTypeReferences If you look at this PR: You'll see that it's failing for typescript@next (AKA 4.7). The changes from this PR Want to have a crack at it? |
@johnnyreilly Yeah. Sure. I'll have a look today. Thanks for getting me started :) |
Speculative fix for #1421 - based on @cspotcode's
ts-node
work here: TypeStrong/ts-node#1648This has been tested on https://github.com/mjbvz/ts-47-webpack-error mentioned by @mjbvz here: microsoft/TypeScript#48020
Using the initial
git clone
of the test repo, it errors out as expected:Then when linking in this updated version, it appears to work: