-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
2.21.0 -> 2.21.1 breaks deno task build
#13806
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
Comments
Hey, Bartek from Deno team here 🖐 we're gonna investigate this on our side too. |
Related upstream issue denoland/deno#20945 |
We're going to fix this upstream, but a possible workaround for the SvelteKit maintainers if they are interested: make the import not statically analyzable, e.g. by putting a |
Came in to report the same issue. Just that I am using Tauri+Vite to build an app using SvelteKit. |
Using the same stack. For now I replaced deno commands with npm in the tauri.config.json file. It is working fine for now. |
The fix there is either to rollback to 2.21.0 or apply a hacky patch after deno install the patch --- node_modules/.deno/@sveltejs+kit@2.21.1/node_modules/@sveltejs/kit/src/core/postbuild/analyse.js 2025-05-26 12:15:47
+++ node_modules/.deno/@sveltejs+kit@2.21.1/node_modules/@sveltejs/kit/src/core/postbuild/analyse.js.new 2025-05-26 12:20:05
@@ -35,11 +35,7 @@
env,
out,
output_config
-}) {
- /** @type {import('@sveltejs/kit').SSRManifest} */
- const manifest = (await import(pathToFileURL(manifest_path).href)).manifest;
-
- /** @type {import('types').ValidatedKitConfig} */
+}) { /** @type {import('types').ValidatedKitConfig} */
const config = (await load_config()).kit;
const server_root = join(config.outDir, 'output');
@@ -60,7 +56,6 @@
internal.set_private_env(private_env);
internal.set_public_env(public_env);
internal.set_safe_public_env(public_env);
- internal.set_manifest(manifest);
internal.set_read_implementation((file) => createReadableStream(`${server_root}/server/${file}`));
const static_exports = new Map();
@@ -83,6 +78,10 @@
routes: new Map()
};
+ /** @type {import('@sveltejs/kit').SSRManifest} */
+ const manifest = (await import(pathToFileURL(manifest_path).href)).manifest;
+ internal.set_manifest(manifest);
+
const nodes = await Promise.all(manifest._.nodes.map((loader) => loader()));
// analyse nodes
then after install patch -f -p0 < patch-svelte-kit |
FYI this is already fixed in Deno canary ( |
Fixed by denoland/deno#29413 |
Uh oh!
There was an error while loading. Please reload this page.
Describe the bug
Just started a new project with
"@sveltejs/kit": "2.21.1",
, which causesdeno task build
to break. Downgrading to2.21.0
works.Hoping the regression can be identified while the release is fresh.
Reproduction
With a new skeleton project:
Works
Breaks
Logs
System Info
Severity
blocking an upgrade
Additional Information
No response
The text was updated successfully, but these errors were encountered: