-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Bug: Cannot read properties of undefined (reading 'at')
coming from typescript-eslint
#8075
Comments
Can confirm! This is the error report:
Coming from:
Logging just before the crash shows:
Very interesting that |
Aha! It's a versioning issue. I:
No crash. Interesting that our tooling didn't report any complaint about a TypeScript version mismatch... I'm thinking it probably should. |
0% surprised that this was on my end. 😄 Yes, definitely would have loved a warning or error with some help there. I was savvy enough to adjust our TS verison in the root thinking it might have been resolving there but wasn't smart enough to dedupe all of them. I'm unblocked! Feel free to close - unless you want something to track version mismatch warning, of course! Thanks for the prompt help, @JoshuaKGoldberg ! |
### Description Throwing up this draft PR to show my suggested fix: deduplicating TypeScript versions. No worries if you end up doing it yourself. I don't have a fully working turbo repository setup locally to verify these changes. 😄 See investigation in typescript-eslint/typescript-eslint#8075. There were multiple TypeScript versions, so enum constants used by typescript-eslint rules weren't set to the values those rules expected. ### Testing Instructions ```shell pnpm i npx eslint docs/components/* ```
The reason there was no error was because we are supposed to support 4.7 |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
I haven't seen this error again and this issue doesn't provide an easy way to reproduce. Assuming this is not relevant anymore |
Before You File a Bug Report Please Confirm You Have Done The Following...
Issue Description
NOTE: I asked @JoshuaKGoldberg for help thinking I had something misconfigured - but he's confident this is a bug. He thinks he already has the problematic code cornered. Because of this, I won't be providing a reproduction - but I am more than happy to if it ends up being needed!
While upgrading dependencies and reconfiguring our monorepo, I ran into this stack trace coming from typescript-eslint. You'll want to click the
> docs:lint
on line 276 to expand the error.Reproduction Repository Link
See NOTE above.
Repro Steps
Provided to me by Josh:
pnpm i
Versions
@typescript-eslint/eslint-plugin
^6.14.0
@typescript-eslint/parser
^6.14.0
TypeScript
5.3.3
ESLint
^8.55.0
node
18.18.2
The text was updated successfully, but these errors were encountered: