Skip to content

Provide best-effort links to contents in node_modules #171

Open
@DanielRosenwasser

Description

@DanielRosenwasser

In cases where an error is reported from a file in node_modules, we end up with output like the following:

packages/utils/devEnv/tsconfig.json

  • error TS2694: Namespace '"/mnt/ts_downloads/_/m/theatre/node_modules/@types/estree/index"' has no exported member 'StaticBlock'.
    • file:///mnt/ts_downloads/_/m/theatre/node_modules/@types/eslint/index.d.ts#L617
    • file:///mnt/ts_downloads/_/m/theatre/node_modules/@types/eslint/index.d.ts#L618
  • error TS2300: Duplicate identifier 'ElementType'.
    • file:///mnt/ts_downloads/_/m/theatre/node_modules/@types/hoist-non-react-statics/node_modules/@types/react/index.d.ts#L3244
    • file:///mnt/ts_downloads/_/m/theatre/node_modules/@types/react/index.d.ts#L3244
  • error TS2300: Duplicate identifier 'LibraryManagedAttributes'.
    • file:///mnt/ts_downloads/_/m/theatre/node_modules/@types/hoist-non-react-statics/node_modules/@types/react/index.d.ts#L3254

I think it would be helpful if we could provide a link to the exact version on unpkg, or more ideally, GitHub if we could really figure that out.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions