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

Failed to resolve entry for package "@runette/leaflet-fullscreen". The package may have incorrect main/module/exports specified in its package.json #6

Open
harry-73 opened this issue Sep 27, 2022 · 2 comments

Comments

@harry-73
Copy link

I use Vite and it complains about package.json. I modified manualy the main entry in package from dist/Leaflet.fullscreen.js to dist/Leaflet.fullscreen.min.js

@werenike
Copy link

werenike commented Oct 18, 2022

I'm getting the same error with Vite + Lit. I'm trying the main entry fix but no luck yet. Any help is appreciated!

edit: It seems the issue has been fixed on git, so installing that directly instead of the npm package works for me:

    "leaflet-fullscreen": "git://github.com/runette/Leaflet.fullscreen.git",

And then in the JS:

import 'leaflet-fullscreen';

@harry-73
Copy link
Author

Late, but it works. Thanks

@runette can you please publish a new release? Thanks

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

No branches or pull requests

2 participants