Skip to content

Dashboard cannot resolve tsconfig paths in ESM mode #3970

@michaelbromley

Description

@michaelbromley

Describe the bug
This is a follow-on from an issue that emerged from:

In Vendure v3.5.1 we are introducing support for compiling ESM-based Vendure projects with the Dashboard. However, what we found is that if you try to use ESM together with tsconfig path aliases, those aliases will not resolve and your dashboard will not compile.

This happens because we are using tsconfig-paths, which does not currently support ESM.

To Reproduce

Use this repo: https://github.com/tianyingchun/vendure-issue

Expected behavior
Should compile and respect tsconfig path aliases

Actual behavior
fails to resolve path aliases

Screenshots/Videos

Image

Environment (please complete the following information):

  • @vendure/core version: 3.5.1
  • Nodejs version: any

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions