Skip to content

tsconfig.paths not working with ES modules #1596

Description

@its-dibo

I switched my project to enable ES modules

  • added type: module in package.json
  • use node --loader ts-node/esm instead of ts-node
  • changed module: commonjs to esnext

it works fine, except when starting using paths aliases.

so, import test from './file'; works, but import test from '@app/file'; doesn't

minimal reproduction

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions