I had a slightly different variation of this error, in my case it was an over-motivated ts-autocomplete adding a random (and apparently broken) import to some file (import { scan } from "rxjs"
).
If the fix above doesn't apply, I recommend going through files and looking for suspicious and unused imports.