TypeError: host.isKnownTypesPackageName is not a function #41962
Labels
Bug
A bug in TypeScript
Help Wanted
You can do this
PursuitFellowship
Help wanted from Pursuit fellowship; others please avoid until Dec 19
Milestone
TypeScript Version: 4.1.3
Search Terms:
getTypesPackageNameToInstall
,isKnownTypesPackageName
Code
Because this happens while using the API, I've created a GitHub repo that reproduces this issue: https://github.com/edsrzf/ts-codefix-repro
Note that I have not been able to reproduce it within an editor, such as VSCode.
Expected behavior:
LanguageService.getCodeFixesAtPosition
returns code fixes and does not throw an exception when passed valid parameters.Actual behavior:
LanguageService.getCodeFixesAtPosition
throws an exception with this stack trace:Playground Link: No playground link, but again there's this GitHub repo: https://github.com/edsrzf/ts-codefix-repro
Related Issues: #18217
The text was updated successfully, but these errors were encountered: