-
Notifications
You must be signed in to change notification settings - Fork 48
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
TypeScript version: 3.5.1 & 3.6.3
(lit-analyzer has no --version btw)
lit-analyzer version: 1.1.8
When I run it against any file in the Home Assistant Polymer repo, I get this error:
TypeError: Cannot read property 'kind' of undefined
at isDeclarationNameOrImportPropertyName (/Users/paulus/dev/hass/home-assistant-polymer/node_modules/typescript/lib/typescript.js:61175:29)
at getTypeOfNode (/Users/paulus/dev/hass/home-assistant-polymer/node_modules/typescript/lib/typescript.js:58919:17)
at Object.getTypeAtLocation (/Users/paulus/dev/hass/home-assistant-polymer/node_modules/typescript/lib/typescript.js:31456:31)
at /Users/paulus/dev/hass/home-assistant-polymer/node_modules/ts-simple-type/lib/index.cjs.js:593:55
at Array.map (<anonymous>)
at toSimpleTypeInternal (/Users/paulus/dev/hass/home-assistant-polymer/node_modules/ts-simple-type/lib/index.cjs.js:590:59)
at toSimpleTypeInternalCaching (/Users/paulus/dev/hass/home-assistant-polymer/node_modules/ts-simple-type/lib/index.cjs.js:351:33)
at /Users/paulus/dev/hass/home-assistant-polymer/node_modules/ts-simple-type/lib/index.cjs.js:593:19
at Array.map (<anonymous>)
at toSimpleTypeInternal (/Users/paulus/dev/hass/home-assistant-polymer/node_modules/ts-simple-type/lib/index.cjs.js:590:59)
I went ahead and put a console.log(name) there to see which name has a parent which is undefined and traced it back to this file:
https://www.unpkg.com/@types/chromecast-caf-receiver@3.0.12/cast.framework.d.ts
That file is imported here (although I don't think that matters)
I tried creating a repro by just npm install typescript lit-analyzer @types/chromecast-caf-receiver but was unable to reproduce it. I might give creating repro another stab when I have time.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working