-
-
Notifications
You must be signed in to change notification settings - Fork 16
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 "@maplibre/maplibre-gl-directions". The package may have incorrect main/module/exports specified in its package.json. #246
Comments
Hi, @chanmathew! Would be really helpful to see at least some minimal reproduction here. |
Hi @smellyshovel - here you go. I'm installing as npm package: You can see as soon as I add the import from the lib it breaks the app, if you remove the import the app loads fine again. |
From what I can see, it's really an issue with plugin's settings. In short (and if I'm not mistaken), I'm using a set of package.json's fields which are compatible with earlier versions of Vite, but the newer ones need some other set of fields. I'll try to fix that ASAP and will let you know when a new version is available. Thanks for letting me know and creating a repro! |
…the relevant declarations to the top of the file)
This comment has been minimized.
This comment has been minimized.
@chanmathew in your reproduction changing the plugin version to 0.7.2 fixes the issue: https://stackblitz.com/edit/sveltejs-kit-template-default-mcyqf37v?file=package.json. Closing this one as completed. |
Thank you @smellyshovel ! Tested 0.7.2 locally on my end and it's loading properly now. Appreciate the quick fix! |
Hi there,
I'm trying to install this library in a Sveltekit project, and I'm getting the following errors:
Error: Failed to resolve entry for package "@maplibre/maplibre-gl-directions". The package may have incorrect main/module/exports specified in its package.json.
Here are my relevant packages:
Not sure what the issue is exactly 🤔
The text was updated successfully, but these errors were encountered: