eslint-plugin-etc icon indicating copy to clipboard operation
eslint-plugin-etc copied to clipboard

TypeError: Cannot read properties of undefined (reading 'parent')

Open yf-yang opened this issue 2 years ago • 2 comments

The problem is this line https://github.com/cartant/eslint-plugin-etc/blob/e04da45c70d404177a11294ed3891cc85aaf4def/source/rules/no-internal.ts#L64

Sometimes ts.Type may have an undefined symbol property, instead the aliasSymbol is correct. At least type aliases are using this member, not symbol. Check the esample here Here is a related stack overflow answer

yf-yang avatar Jul 20 '23 01:07 yf-yang

I forgot to provide background, this error occurs in rule no-internal.

yf-yang avatar Jul 20 '23 01:07 yf-yang

This came up for me when attempting to upgrade to TypeScript 5.1.6.

axelboc avatar Sep 13 '23 13:09 axelboc