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

TSError: Interface 'AssertClause' cannot simultaneously extend types 'ImportAttributes' and 'Node' #8047

Closed
Labels
accepting prsGo ahead, send a pull request that resolves this issuebugSomething isn't workinghelp wantedExtra attention is neededpackage: typescript-estreeIssues related to @typescript-eslint/typescript-estree
@deot

Description

@deot

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 havesearched for related issues and found none that matched my issue.
  • I haveread the FAQ and my problem is not listed.

Issue Description

When I usetsc, I get some errors when build.

node_modules/typescript/lib/typescript.d.ts:6021:15 - error TS2320: Interface 'AssertEntry' cannot simultaneously extend types 'ImportAttribute' and 'Node'.  Named property 'kind' of types 'ImportAttribute' and 'Node' are not identical.6021     interface AssertEntry extends ImportAttribute {                   ~~~~~~~~~~~node_modules/typescript/lib/typescript.d.ts:6021:15 - error TS2320: Interface 'AssertEntry' cannot simultaneously extend types 'ImportAttribute' and 'Node'.  Named property 'parent' of types 'ImportAttribute' and 'Node' are not identical.6021     interface AssertEntry extends ImportAttribute {                   ~~~~~~~~~~~node_modules/typescript/lib/typescript.d.ts:6024:15 - error TS2320: Interface 'AssertClause' cannot simultaneously extend types 'ImportAttributes' and 'Node'.  Named property 'kind' of types 'ImportAttributes' and 'Node' are not identical.6024     interface AssertClause extends ImportAttributes {                   ~~~~~~~~~~~~node_modules/typescript/lib/typescript.d.ts:6024:15 - error TS2320: Interface 'AssertClause' cannot simultaneously extend types 'ImportAttributes' and 'Node'.  Named property 'parent' of types 'ImportAttributes' and 'Node' are not identical.6024     interface AssertClause extends ImportAttributes {                   ~~~~~~~~~~~~Found 4 errors in the same file, starting at: node_modules/typescript/lib/typescript.d.ts:6021

It seems there are still errors after#7968 fix

#7968 (comment)

Reproduction Repository Link

https://stackblitz.com/edit/nhmdzj?file=index.ts&file=tsconfig.json

Repro Steps

  1. open link
  2. npm install
  3. npm run build

Screenshot of a comment on a GitHub issue showing an gif, Demo steps for repro

Versions

packageversion
@typescript-eslint/eslint-plugin6.13.2
TypeScript5.3.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    accepting prsGo ahead, send a pull request that resolves this issuebugSomething isn't workinghelp wantedExtra attention is neededpackage: 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