Skip to content

Subpath imports not working #11

@TimonVS

Description

@TimonVS

Subpath imports using the "imports" field in package.json results in an error like:

Error [ERR_MODULE_NOT_FOUND]: Cannot find module '/Users/timon.vanspronsen/Code/tsimp-imports/src/utils/math.js'

I've created a reproduction repository here: https://github.com/TimonVS/tsimp-imports. I've tried with both Node.js 18 and 20.

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