Skip to content

Bug: Cannot read properties of undefined (reading 'at') coming from typescript-eslint #8075

@anthonyshew

Description

@anthonyshew

Before You File a Bug Report Please Confirm You Have Done The Following...

  • I have tried restarting my IDE and the issue persists.
  • I have updated to the latest version of the packages.
  • I have searched for related issues and found none that matched my issue.
  • I have read the FAQ and my problem is not listed.

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:

  1. Clone repo (https://github.com/vercel/turbo)
  2. Start a pnpm i
  3. npx eslint docs/components/Authors.tsx

Versions

package version
@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

Metadata

Metadata

Assignees

No one assigned

    Labels

    accepting prsGo ahead, send a pull request that resolves this issuebugSomething isn't workinglocked due to agePlease open a new issue if you'd like to say more. See https://typescript-eslint.io/contributing.package: eslint-pluginIssues related to @typescript-eslint/eslint-plugin

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions