-
-
Notifications
You must be signed in to change notification settings - Fork 90
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
No "exports" main defined in node_modules/@automapper/classes/package.json #587
Comments
idk if its related, but jest also starts throwing errors:
i tried different configs like adding the package to the |
I'm not sure whether the jest error is related to this issue. The change to Someone else said that the error occurred in 8.7.7, but he/she removed the comment. Can you verify this @timonmasberg? |
I can not reproduce the error on 8.7.7, its probably not related to this issue but rather to this change |
Solved with #589. |
Is there an existing issue for this?
Describe the issue
Hi there, @nartc!
First of all, thank you for taking the time to merge pending PRs and releasing version 8.8.0 of automapper-ts!
Unfortunately, it seems that some of these changes have introduced a minor issue in the
@automapper/classes
package:Turns out that "./" is not a valid key for
package.json
'sexports
option.For me, this is an issue when using pkg to generate single-executable Node binaries, as I get the following error:
It seems to me that the fix is as simple as replacing "./" with just ".".
Models/DTOs/VMs
N/A
Mapping configuration
N/A
Steps to reproduce
Just open
@automapper/classes
on VSCode to get the aforementioned warning.Expected behavior
The main export of
@automapper/classes
should be correctly identified when usingpkg
to generate single-executable Node binaries.This is fixed by exporting ".", instead of "./", which is not a valid export path.
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.8.0
Additional context
Linux Node v20
The text was updated successfully, but these errors were encountered: