Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Regression in 2.24.0: TypeError: Cannot read property 'name' of undefined #1746

Closed
Labels
bugSomething isn't workinghas prthere is a PR raised to close thispackage: typescript-estreeIssues related to @typescript-eslint/typescript-estree
@crfrolik

Description

@crfrolik

What code were you trying to parse?

This seems to be an issue with barrel files, and was likely introduced by133f622#diff-68b2b0b0d2d0ff1846b1114472008332R1606

export*from'./app/foo';

What did you expect to happen?

No error.

What actually happened?

myrepo\src\public_api.ts  0:0  error  Parsing error: Cannot read property 'name' of undefined

Running with--debug gives the following (clipped for brevity):

 eslint:file-enumerator Yield: public_api.ts +51ms  eslint:cascading-config-array-factory Load config files for myrepo\src. +52ms  eslint:cascading-config-array-factory Cache hit: myrepo\src. +6ms  eslint:cli-engine Lint myrepo\src\public_api.ts +50ms  eslint:linter Linting code for myrepo\src\public_api.ts (pass 1) +26ms  eslint:linter Verify +8ms  eslint:linter With ConfigArray: myrepo\src\public_api.ts +2ms  eslint:linter Parsing error: Cannot read property 'name' of undefined  eslint:linter TypeError: Cannot read property 'name' of undefined    at Converter.convertNode (myrepo\node_modules\@typescript-eslint\typescript-estree\dist\convert.js:1247:67)    at Converter.converter (myrepo\node_modules\@typescript-eslint\typescript-estree\dist\convert.js:72:29)    at Converter.convertChild (myrepo\node_modules\@typescript-eslint\typescript-estree\dist\convert.js:147:21)    at myrepo\node_modules\@typescript-eslint\typescript-estree\dist\convert.js:203:32    at Array.map (<anonymous>)    at Converter.convertBodyExpressions (myrepo\node_modules\@typescript-eslint\typescript-estree\dist\convert.js:202:14)    at Converter.convertNode (myrepo\node_modules\@typescript-eslint\typescript-estree\dist\convert.js:441:32)    at Converter.converter (myrepo\node_modules\@typescript-eslint\typescript-estree\dist\convert.js:72:29)    at Converter.convertProgram (myrepo\node_modules\@typescript-eslint\typescript-estree\dist\convert.js:47:21)    at Object.astConverter (myrepo\node_modules\@typescript-eslint\typescript-estree\dist\ast-converter.js:26:29) +9ms

Versions

packageversion
@typescript-eslint/typescript-estree2.24.0
TypeScript3.7.5
node13.9.0
npmyarn 1.22.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghas prthere is a PR raised to close thispackage: typescript-estreeIssues related to @typescript-eslint/typescript-estree

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp