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

Bug: Published .d.ts.map files have sources that points to unpublished files #11613

Closed
Labels
accepting prsGo ahead, send a pull request that resolves this issuebugSomething isn't working
@bluwy

Description

@bluwy

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.

Relevant Package

types

Playground Link

No response

Repro Code

NOTE:Thisaffectsafew`@typescript-eslint/`packages.I'll take one package example:1.Visit https://www.npmjs.com/package/@typescript-eslint/types?activeTab=code2.Check`dist/ts-estree.d.ts.map`3.Noticethe`"sources"`pointsto`"../src/ts-estree.ts"`whichisn't published

ESLint Config

irrelevant

tsconfig

irrelevant

Expected Result

The sourcemap"sources" should point to an existing file, or the sourcemap should be removed entirely.

Actual Result

The sourcemap"sources" points to unpublished files, meaning that the IDE can't use it to navigate to the original types or declaration if I want to "go to source definition". Any stacktraces using the sourcemap would also point to a non-existing file, making it not possible to visit the file for debugging.

Additional Info

I find that this affects a few packages including:

  • @typescript-eslint/types
  • @typescript-eslint/eslint-plugin
  • @typescript-eslint/parser
  • @typescript-eslint/typescript-estree
  • @typescript-eslint/type-utils
  • @typescript-eslint/utils

It might be easier to remove the.d.ts.map files entirely as the.js files don't have sourcemaps either.

Versions

I'm copying my local versions here but I'm pretty sure it's relevant in the current latest releases too

packageversion
@typescript-eslint/eslint-plugin8.43.0
@typescript-eslint/parser8.43.0
@typescript-eslint/typescript-estree8.43.0
@typescript-eslint/type-utils8.43.0
@typescript-eslint/utils8.43.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    accepting prsGo ahead, send a pull request that resolves this issuebugSomething isn't working

    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