The current Svelte SDK is a bit behind. Svelte 5 launched two months ago and has seen several updates already. @builder.io/sdk-svelte@3.0.0
was released two weeks ago but it still depending on
“devDependencies”: {
“@builder.io/sdks”: “workspace:*”,
“@sveltejs/adapter-auto”: “^2.1.0”,
“@sveltejs/kit”: “^1.22.4”,
“@sveltejs/package”: “^2.2.0”,
“svelte”: “^4.1.2”,
“svelte-check”: “^3.4.6”,
“svelte-preprocess”: “^5.0.4”,
“tslib”: “^2.3.1”,
“typescript”: “^5.1.6”,
“vite”: “^4.4.8”
I’m getting this error:
Hey Jasper,
I have reproduced the issue you shared.
Although this isn’t recommended, using the --force flag on your installation of the svelte package will cause the installation to proceed with warnings, i.e.
npm install @builder.io/sdk-svelte --force
Of course, this could lead to complications. I tested it out on my own project and I successfully integrated a page with Builder at least.
I would recommend raising Svelte 5 support as a feature request on https://ideas.builder.io/ so that the team can get a good sense of the demand for it. If you do, please share the link on this post
1 Like
Thanks @alexander! I’ll get that going for sure!