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

Svelte 4 compatibility #269

Open
f-elix opened this issue Jun 29, 2023 · 6 comments · May be fixed by #270
Open

Svelte 4 compatibility #269

f-elix opened this issue Jun 29, 2023 · 6 comments · May be fixed by #270

Comments

@f-elix
Copy link

f-elix commented Jun 29, 2023

Right now the peerDependencies indicate Svelte 3.x, which prevents me from upgrading to Svelte 4. Is there any plan on changing that to allow Svelte 4 compatibility?

@NanezX
Copy link

NanezX commented Jul 17, 2023

I'm interested on this too.

@Skylli202
Copy link

Yes, I'm interested in this as well. Anyone has information on this repo being or not updated for Svelte 4 ?

@hnrq
Copy link

hnrq commented Sep 7, 2023

Needing this as well!

@f-elix
Copy link
Author

f-elix commented Sep 8, 2023

For those still struggling with this, there is this package: https://github.com/DockYard/svelte-inline-component.

It doesn't seem to be available on npm anymore, but the code is simple enough that it can be copy/pasted in a project and adapted to suit your needs. Works great!

@Mitcheljager
Copy link

Mitcheljager commented Sep 29, 2023

I've created an updated package that works with Svelte 4. There were 2 other packages that this package depended on that I've also updated. https://github.com/Playpilot/svelte-htm. It's largely a copy paste of this repo, with necessary changes made. All original tests are still green.
You should be able to replace svelte-htm in your package.json and imports with @playpilot/svelte-htm, and you should be good to go.

@danawoodman danawoodman linked a pull request Dec 19, 2023 that will close this issue
4 tasks
@danawoodman
Copy link

Added a PR that supports v4

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

Successfully merging a pull request may close this issue.

6 participants