-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
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 template does not support v5 preview #17609
Comments
Why would you expect |
@rschristian This is the officially recommended way of building a Svelte JS project (though their primary recommendation is to create a Svelte Kit project): https://svelte.dev/docs/introduction And Svelte 5 reached Release Candidate more than 2 months ago: https://svelte.dev/blog/svelte-5-release-candidate Is it unreasonable to expect to be able to actually start experimenting with Svelte5 projects with the RC release and to find and report issues, to prepare for Svelte 5 final release? Perhaps I should rephrase this as "Support Svelte4 and Svelte5 separately" because Svelte 5 seems to be a major architectural change? |
I'm no maintainer here, but yes, I would say so. Pending release, any support (outside the direct ecosystem) should be a pleasant surprise, far from expected -- and that goes for every lib. Besides, it doesn't look like it's much manual work? Svelte 4 components are supported with a few exceptions? |
@rschristian The breaking changes are listed here. I got the first page to load by making these manual changes:
But I am not sure what else might be broken. |
The steps outlined above look right to me. The svelte template in create-vite is going to be updated to svelte5 once that has a stable release. If you have questions about svelte5 rc, please join https://svelte.dev/chat and check out https://discord.com/channels/457912077277855764/1153350350158450758 |
Describe the bug
I want to build a new project with Svelte v5 (which has reached release candidate, but not GA).
npm create svelte@latest
offers me the choice to try Svelte preview (i.e. v5) but this creates a Svelte Kit project which I do not want.To create a Svelte only project, I tried
npm create vite@latest
(as suggested on https://svelte.dev/docs/introduction ) but this defaults to v4 and does not give me the choice to use Svelte 5 preview.Reproduction
npm create vite@latest
Steps to reproduce
Run
npm create vite@latest
and notice it does not prompt me for using Svelte 5 (the way,npm create svelte@latest
does) and observe package.json which uses Svelte ^4.2.18.System Info
Used Package Manager
npm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: