Skip to content

"Module not found: Default condition should be last one" occur when import @mapbox/tilebelt#49

Merged
greenlaw merged 1 commit intomapbox:mainfrom
issei1203:patch-1
Dec 5, 2025
Merged

"Module not found: Default condition should be last one" occur when import @mapbox/tilebelt#49
greenlaw merged 1 commit intomapbox:mainfrom
issei1203:patch-1

Conversation

@issei1203
Copy link
Contributor

@issei1203 issei1203 commented Dec 6, 2024

"Module not found: Default condition should be last one" occur when import @mapbox/tilebelt.

Webpack requires the default property in exports of package.json to be listed last.

Changing the order of default and types in the 'exports' resolves the issue.

"default" of "exports" move last
Copy link
Contributor

@greenlaw greenlaw left a comment

Choose a reason for hiding this comment

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

Sorry for the lack of attention here. Appreciate you submitting this fix @issei1203 🙏

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.

2 participants