Skip to content
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

fix(package.json): "." declaration in exports #78

Merged
merged 3 commits into from Nov 19, 2023
Merged

fix(package.json): "." declaration in exports #78

merged 3 commits into from Nov 19, 2023

Conversation

MircoSteyer
Copy link
Contributor

This change is necessary, as in modern node environment exports takes precedence over main for entrance points to the point of ignoring the main property for ESM resolution.

The error happened to me, specifically after trying to setup Vitest.

Error: Failed to resolve entry for package "svelte-preprocess-delegate-events". The package may have incorrect main/module/exports specified in its package.json: Missing "." specifier in "svelte-preprocess-delegate-events" package

This change is necessary, as in modern node environment `exports` takes precedence over `main` for entrance points to the point of ignoring the main property for ESM resolution.
Copy link

changeset-bot bot commented Nov 17, 2023

🦋 Changeset detected

Latest commit: 7ddb2d2

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
svelte-preprocess-delegate-events Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link
Owner

@baseballyama baseballyama left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@baseballyama baseballyama merged commit 85afdb0 into baseballyama:main Nov 19, 2023
4 checks passed
@baseballyama
Copy link
Owner

@MircoSteyer

I released 0.4.3!
Could you check this release fixed this issue?

https://www.npmjs.com/package/svelte-preprocess-delegate-events

@MircoSteyer
Copy link
Contributor Author

@baseballyama Thanks a lot for the quick help! Everything seems to work perfectly now. 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants