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(typescript-checker): support TS 4.4 #3178

Merged
merged 2 commits into from
Sep 30, 2021
Merged

fix(typescript-checker): support TS 4.4 #3178

merged 2 commits into from
Sep 30, 2021

Conversation

nicojs
Copy link
Member

@nicojs nicojs commented Sep 30, 2021

TypeScript 4.4 also watches package.json files in node_modules for changes. I guess this is done to be able to reload the types when a node_module gets updated.

However, the typescript-checker wasn't expecting those watchFile calls to come in. The checker was defensive programmed, meaning an error is thrown when something happens that it doesn't expect.

This ended up being a simple fix. Simply ignoring watchFile of files that are not loaded seems to do the trick.

Fixes #3176

TypeScript 4.4 also watches package.json files in node_modules for changes. I guess this is done to be able to reload the types when a node_module gets updated.

However, the typescript-checker wasn't expecting those `watchFile` calls to come in. The checker was defensive programmed, meaning an error is thrown when something happens that it doesn't expect.

This ended up being a simple fix. Simply ignoring `watchFile` of files that are not loaded seems to do the trick.
@nicojs nicojs enabled auto-merge (squash) September 30, 2021 15:58
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-checker does not support TypeScript 4.4
1 participant