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

fix(vue-tsc): fix typescript 5 support #2555

Merged

Conversation

blake-newman
Copy link
Member

@blake-newman blake-newman commented Mar 29, 2023

Typescript 5 will attempt to use the host resolveModuleNameLiterals if present, which prevents vue-tsc looking up Vue files.

Set this as undefined so it defaults back to existing logic.


I'm unsure on the api of resolveModuleNameLiterals so didn't try to implement a solution for this currently; thought it best to fallback to existing behavior and then discover if we get any benefits from using this API.

Typescript 5 will attempt to use the host `resolveModuleNameLiterals`
if present, which prevents vue-tsc looking up Vue files.

Set this as undefined so it defaults back to existing logic.
@blake-newman
Copy link
Member Author

This may give some insight on using the resolveModuleNameLiterals API.

sveltejs/language-tools#1799

@johnsoncodehk
Copy link
Member

Thank you for investigating it!

@johnsoncodehk johnsoncodehk linked an issue Mar 30, 2023 that may be closed by this pull request
@johnsoncodehk johnsoncodehk merged commit cea7409 into vuejs:master Mar 30, 2023
3 checks passed
@blake-newman blake-newman deleted the blake.newman/fix-typescript-5 branch March 30, 2023 12:36
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

Successfully merging this pull request may close these issues.

Typescript 5.0 support
2 participants