Open StephenGunn opened 1 year ago
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:
"devDependencies": {
...
"@beyonk/svelte-mapbox": "^9.1.0",
...
},
"overrides": {
"@beyonk/svelte-mapbox": {
"svelte": "$svelte"
}
}
Peer deps have been updated with this commit: https://github.com/beyonk-group/svelte-mapbox/commit/1e2edf81c6bb237175129f3db3bfea787ed708ca
Is this bug fixed?
Will be fixed in the next release.
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.