Skip to content

Path aliases stop working when migrating to ESM on v12 #17706

Description

@hfhchan-plb

Did you read the migration guide?

  • I have read the whole migration guide

Is there an existing issue that is already proposing this?

  • I have searched the existing issues

Potential Commit/PR that introduced the regression

No response

NestJS version

11.0 -> 12.0

Describe the regression

Path aliases stop working when migrating to ESM on v12 with monorepo: true with tsc.

It appears that tsc doesn't transform them any more when on ESM. There is no mention of this breaking in the https://docs.nestjs.com/migration-guide.

Minimum reproduction code

No response

Input code

Expected behavior

Path aliases continue to be transformed, or a note is made in the Migration Guide on how to migrate - either by adding more transforms on the compiled output, or by moving to native subpath support in node.

Other

No response

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions