Skip to content

Module resolution should not succeed but does #43342

@amcasey

Description

@amcasey

a.ts

export {}

b.ts

import "BAD/../../a";

node_modules/
Present but empty

Expected: import fails to resolve
Actual: import resolves because we look in node_modules/BAD/../../a, which simplifies to a.

The path normalization in question happens here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions