-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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 integration with Svelte 5 is unusable since [email protected] #10637
Comments
Should be fixed upstream: sveltejs/svelte#10979 |
That was fixed but |
Seems like we need to use the new entrypoints now:
( and bump the peer dep to next.90 |
UPDATE: I did a bit of searching and found #9098 mentioning that I changed those imports and bumped the peer dependency. When testing locally, although the original error message went away, another error message showed up: src/components/Counter.svelte (2:9): Error when using sourcemap for reporting an error: Can't resolve original location of error.
20:14:36 [ERROR] [vite] x Build failed in 251ms
src/components/Counter.svelte (2:9): "create_ssr_component" is not exported by "node_modules/svelte/src/internal/index.js", imported by "src/components/Counter.svelte".
file: /Downloads/jvminvvrg.github/src/components/Counter.svelte:2:9
1: /* src/components/Counter.svelte generated by Svelte v4.2.12 */
2: import { create_ssr_component, escape } from "svelte/internal";
^
3:
4: const css = {
Stack trace:
at getRollupError (file:///Developer/astro/node_modules/.pnpm/[email protected]/node_modules/rollup/dist/es/shared/parseAst.js:376:41)
at Module.error (file:///Developer/astro/node_modules/.pnpm/[email protected]/node_modules/rollup/dist/es/shared/node-entry.js:13654:16)
at ModuleScope.findVariable (file:///Developer/astro/node_modules/.pnpm/[email protected]/node_modules/rollup/dist/es/shared/node-entry.js:11805:39)
at CallExpression.bind (file:///Developer/astro/node_modules/.pnpm/[email protected]/node_modules/rollup/dist/es/shared/node-entry.js:4735:23)
at VariableDeclarator.bind (file:///Developer/astro/node_modules/.pnpm/[email protected]/node_modules/rollup/dist/es/shared/node-entry.js:4735:23) Is there anything I need to pay attention to when testing locally? |
Astro Info
If this issue only occurs in one browser, which browser is a problem?
No response
Describe the Bug
Svelte 5 has removed the ability to directly import from the
internal
module, which the svelte integration relies on, and now throws:On
next.88
(sveltejs/svelte#10968)On
next.90
(sveltejs/svelte#10987)The exports have moved to
internal/client
andinternal/server
in v5.What's the expected result?
No error
Link to Minimal Reproducible Example
https://stackblitz.com/github/withastro/astro/tree/latest/examples/minimal?file=README.md
Participation
The text was updated successfully, but these errors were encountered: