-
-
Notifications
You must be signed in to change notification settings - Fork 82
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Doesn't work with Typescript 4.9 or newer with moduleResolution:"node16" #585
Labels
bug
Something isn't working
Comments
Any plans to tackle this @nartc? or did you figure it out @iamchathu |
@driley-abbvie Nope. I tried patching the module but seems have to do lot of work to get done manually. Better to setup something like tsup to generate seperate type definitions for both module types |
Even the latest version has the same issue. npx @arethetypeswrong/cli --from-npm @automapper/[email protected] ┌───────────────────┬──────────────────────────────┐
│ │ "@automapper/core" │
├───────────────────┼──────────────────────────────┤
│ node10 │ 🟢 │
├───────────────────┼──────────────────────────────┤
│ node16 (from CJS) │ 👺 Masquerading as ESM │
│ │ 🥴 Internal resolution error │
├───────────────────┼──────────────────────────────┤
│ node16 (from ESM) │ 👺 Masquerading as ESM │
│ │ 🥴 Internal resolution error │
├───────────────────┼──────────────────────────────┤
│ bundler │ 🟢 │
└───────────────────┴──────────────────────────────┘ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is there an existing issue for this?
Describe the issue
The imports doesn't work with latest Typescript versions with
moduleResolution:"node16"
I did instigate on this and used
It does following output
Seems both CJS and ESM are broken for node16 resolution mode.
Models/DTOs/VMs
No response
Mapping configuration
No response
Steps to reproduce
No response
Expected behavior
Should work with new Typescript version with ES Module resolution.
Screenshots
No response
Minimum reproduction code
No response
Package
@automapper/core
@automapper/classes
@automapper/nestjs
@automapper/pojos
@automapper/mikro
@automapper/sequelize
Other package and its version
No response
AutoMapper version
8.0.0
Additional context
No response
The text was updated successfully, but these errors were encountered: