martpie / next-transpile-modules

Next.js plugin to transpile code from node_modules. Please see: https://github.com/martpie/next-transpile-modules/issues/291
MIT License
1.13k stars 84 forks source link

Using next-transpile-modules with TypeScript path aliases #289

Closed omariosouto closed 1 year ago

omariosouto commented 1 year ago

Is your feature request related to a problem? Please describe. Hey, I was looking for some reference about how to use path aliases of typescript, but I always receive an error trying to do this 😢.

Example:

- packages/ui-library (The imports are broken if I use path aliases)
- products/www.mycompany.com (Here is the config of the `next-transpile-modules` already referencing ui-library)

Additional context Add any other context or screenshots about the feature request here.

CleanShot 2022-12-10 at 12 20 41@2x

Is there any alternative to make this work?