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
feat: Svelte support #22345
Comments
|
I’ve personally switched to using framework7 for now, which has official svelte support. |
|
+1 Please add Svelte support. |
|
Are there any plans about supporting Svelte in the (near) future yet? |
|
Hey everyone! We are well aware of how much folks want official Svelte framework support. We need to do some more research, so we’re going to make this ticket the primary Svelte ticket. Please try to react and share your perspective on this ticket for this feature. We have a few questions as well:
The more signal we get on this, and the more information folks can provide to us, the sooner we may be able to give you a heads up on timing and plans for Framework support. Right now, we’re focused on releasing Framework v6. |
|
@willmartian I tried using 6.0.0-rc.3 in a test project here: https://github.com/raymondboswel/svelte-capacitor. The project uses vite 2.2.3 to build. When I build the project I get: [vite]: Rollup failed to resolve import "node_modules/@ionic/core/dist/ionic/ionic.esm.js" from "index.html". I have also encountered the same error when running, which I could "solve" by only adding in the ionic references in index.html after the project is running. I'm not sure if I used the correct approach to instantiate Ionic, there isn't much guidance on how to do it when not using a supported framework / CDN. Hope this helps! |
|
It's been more than a year since the issue was opened. When are we going to see support for Svelte? |
|
I wrote a short piece about my experience with Ionic v6 in Svelte. All in all I'd say it's quite usable at this stage, although the documentation hasn't caught up quite yet. https://medium.com/@raymondboswel/ionic-6-svelte-ae904caa82df |
|
It looks like stencil can already output svelte components 1, so couldn't a ionic-svelte package be created fairly easily? Footnotes |
|
I started working on ionic 6 & svelte integration, using vite (so using https://github.com/Tommertom/svelte-ionic-app With a nice demo app to showcase how cool Ionic is as an framework - https://ionicsvelte.firebaseapp.com/components/Splash Hopefully this will inspire Ionic's team to create official one :) |
|
See comment by Rich Harris on integration of Ionic with SvelteKIT (not svelte) - sveltejs/kit#5143 |

Formed in 2009, the Archive Team (not to be confused with the archive.org Archive-It Team) is a rogue archivist collective dedicated to saving copies of rapidly dying or deleted websites for the sake of history and digital heritage. The group is 100% composed of volunteers and interested parties, and has expanded into a large amount of related projects for saving online and digital history.


Feature Request
Ionic version:
5.x
Describe the Feature Request
Official support for Svelte framework
Describe Preferred Solution
Official support for Svelte framework from the ionic team.
Describe Alternatives
Svelte can already be used with ionic without official support, but there are a few caveats.
Related Code
https://github.com/Tommertom/svelte-ionic-app
https://ionicsvelte.firebaseapp.com/ionic/Slides
The text was updated successfully, but these errors were encountered: