Skip to content

TypeError: Cannot read property 'flags' of undefined at isRelatedTo #27345

@minestarks

Description

@minestarks

TypeScript Version: 3.1.0-dev.20180925

git clone --depth=1 https://github.com/0xfe/vexflow
cd vexflow
tsc --init
tsc --allowJs --checkJs

Compiler crashes with the callstack:

TypeError: Cannot read property 'flags' of undefined
    at isRelatedTo (node_modules\typescript\lib\tsc.js:33794:28)
    at compareSignaturesRelated (node_modules\typescript\lib\tsc.js:33533:25)
    at signatureRelatedTo (node_modules\typescript\lib\tsc.js:34639:24)
    at signaturesRelatedTo (node_modules\typescript\lib\tsc.js:34614:30)
    at structuredTypeRelatedTo (node_modules\typescript\lib\tsc.js:34403:43)
    at recursiveTypeRelatedTo (node_modules\typescript\lib\tsc.js:34190:53)
    at isRelatedTo (node_modules\typescript\lib\tsc.js:33875:38)
    at checkTypeRelatedTo (node_modules\typescript\lib\tsc.js:33709:26)
    at isTypeRelatedTo (node_modules\typescript\lib\tsc.js:33691:24)
    at isTypeSubtypeOf (node_modules\typescript\lib\tsc.js:33172:20)

Metadata

Metadata

Assignees

Labels

BugA bug in TypeScriptCrashFor flagging bugs which are compiler or service crashes or unclean exits, rather than bad outputFixedA PR has been merged for this issue

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions