Closed Ameobea closed 4 months ago
Thank you for flagging this!
This is unfortunate although I suppose that's to be expected with the preprocess-related stuff (where breaking changes can happen at any time).
I'll explore options to see if I can make this compatible with Svelte 5.
I've released v0.11.3 which now uses walk
from estree-walker
directly (the official recommended solution). This approach allows Svelte 5 compatibility without needing to have carbon-preprocess-svelte
depend on a specific version of Svelte.
That's terrific! Thanks very much for doing that and for your excellent stewardship of this project.
Although Svelte 5 is not yet released, it's in active development and preview and I thought it might be useful to get an early signal on this.
I set up a new project with
create-svelte
and chose the "Svelte 5 Preview" option during setup. I then installedcarbon-components-svelte
andcarbon-preprocess-svelte
.After updating my
svelte.config.js
with the change specified in the README, I saw this error in the console:It looks like these imports:
Will need to be updated to work with Svelte v5. I'm not sure if there are other compat issues as well beyond these.
Anyway, this isn't a big problem right now because Svelte 5 is still not yet officially released - but yeah I wanted to give a heads up!