-
Notifications
You must be signed in to change notification settings - Fork 61
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
SvelteKit build fails due to peer dependency issues with Svelte v4 #90
Comments
Just tried installing svelte-mapbox and ran into the same error. Think this will be affecting most potential new users at this point. |
I opened a pull request to add svelte 4 compatibility. I know Antony is a busy guy so I published a temp package that fixes the compatibility: https://www.npmjs.com/package/svelte-mapbox-4-temp I will delete my temp package once compatibility on this repo gets added. |
I'm using pnpm - it gives a warning but still works fine. Not a real solution but an alternate work around if you need to make it work! |
Tagging @antony for visibility. This project is broken on the current release of Svelte. |
in your project, edit package.json like this:
|
Peer deps have been updated with this commit: 1e2edf8 Is this bug fixed? |
Will be fixed in the next release. |
Thanks @antony. Looks like a release has gone out. Can this be closed now? |
With the new Svelte 4 release, trying to build my SvelteKit project fails due to the
peer svelte@"^3.0.0"
dependency in Svelte-mapbox.Just messing with it in dev, I don't have any issues using Svelte 4 with the current version of Svelte-mapbox.
I don't know what testing you would want to do before bumping that number up to include Svelte 4, or I would just submit a pull request to fix it.
Thank you for the great package, I use it in multiple sites with great success.
The full error on Cloudflare Pages:
adding --force to the build command does not fix the problem.
The text was updated successfully, but these errors were encountered: