Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
yf-yang opened this issue Jul 20, 2023 · 2 comments
Open

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

yf-yang opened this issue Jul 20, 2023 · 2 comments

Comments

@yf-yang
Copy link

yf-yang commented Jul 20, 2023

The problem is this line

return typeChecker.getFullyQualifiedName(type.symbol);

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
Copy link
Author

yf-yang commented Jul 20, 2023

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

@axelboc
Copy link

axelboc commented Sep 13, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants