mapcomponents/react-map-components-maplibre

package.json has invalid "main" entry

eins78 opened this issue · 2 comments

The package as published on npm can not be used in all environments because the main entry is pointing to a non-existing file.
If (manually) changed to have the same content as the module entry, it works as expected.

"main": "index.js",

"module": "dist/index.esm.js",

Thank you for raising the issue.
I will look into it and change it with the next release.

Can you give me some information on your app setup so I can reproduce and fix the issue?

@eins78 we have included the suggested adjustments in the latest release. I hope everything works fine with the setup now without the need of manually changing anything in the installed modules.