Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Move default condition last #15

Merged
merged 1 commit into from
Feb 3, 2024
Merged

Move default condition last #15

merged 1 commit into from
Feb 3, 2024

Conversation

alebelcor
Copy link
Contributor

@alebelcor alebelcor commented Jan 31, 2024

Hi,

There's a compilation error happening with Next.js when using math-clamp v2.2.0:

Module not found: Default condition should be last one

However, it doesn't happen with v2.1.0. It was most likely caused by #14 because it's the only commit contained in v2.2.0.

More specifically caused by the changes in package.json where a default exports entry was added and was not the last one, as the error indicates.

As reference, a similar issue was reported in firebase-js-sdk. The root cause was the same, a PR where package.json changed in a similar matter. The solution was to move the entry to be last as shown in this PR.

This PR attempts to fix the issue in the same way.

Feel free to let me know if I should make further changes.

Thanks!

@sindresorhus sindresorhus merged commit c08761e into sindresorhus:main Feb 3, 2024
1 check passed
@alebelcor alebelcor deleted the patch-1 branch February 5, 2024 18:34
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants