runem / lit-analyzer

Monorepository for tools that analyze lit-html templates

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

lit-analyzer is not compatible with latest TypeScript

bicknellr opened this issue · comments

lit-analyzer needs to be updated to work with and test on the latest version of TypeScript. Here are a few issues already that either point this out directly or at least seem related:

I haven't scanned through to find all related issues so there are likely others.

I was about to create yet another issue when I found this one. Here's a really simple test case demonstrating the no-missing-import rule yielding false positives because lit-analyzer can't resolve dependencies.

https://github.com/pmcelhaney/lit-analyzer-ts5-

I've traced the issue to this line.

: "getResolvedModuleWithFailedLookupLocationsFromCache" in context.program

After upgrading to TypeScript 5, getResolvedModuleWithFailedLookupLocationsFromCache is not in the context.program object, so lit-analyzer can't resolve dependencies and follow imports. I bet that's the root cause of multiple issues.

Bumping to say, I'm also hopeful for a fix to this.

I'm guessing this is related to #299

This should be fixed now, install the @next tag