-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Closed
Labels
awaiting submitterneeds a reproduction, or clarificationneeds a reproduction, or clarification
Description
Describe the bug
I am getting this error when I try to build my tauri app. The function it is complaining about is setInterval(() => {}, 50). I haven't touched this code at all. Just updated to Svelte v5.35.1 from v5.34.8
Console Output:
PS D:\foo> deno task tauri build
Task tauri tauri "build"
Warn The bundle identifier "com.bar.app" set in `tauri.conf.json identifier` ends with `.app`. This is not recommended because it conflicts with the application bundle extension on macOS.
Running beforeBuildCommand `deno task build`
Task build vite build
▲ [WARNING] Cannot find base config file "./.svelte-kit/tsconfig.json" [tsconfig.json]
tsconfig.json:2:13:
2 │ "extends": "./.svelte-kit/tsconfig.json",
╵ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
vite v7.0.0 building SSR bundle for production...
✓ 187 modules transformed.
✗ Build failed in 916ms
error during build:
src/routes/+page.svelte (182:7): Expected ',', got 'numeric literal (50, 50)' (Note that you need plugins to import files that are not JavaScript)
file: D:/foo/bar/src/routes/+page.svelte:182:7
180: ui("#enable-permanent-lock-dialog");
181: }
182: }, 50); // 50ms interval for 5 seconds total
^
183: }
at getRollupError (file:///D:/foo/node_modules/.deno/[email protected]/node_modules/rollup/dist/es/shared/parseAst.js:401:41)
at ParseError.initialise (file:///D:/foo/node_modules/.deno/[email protected]/node_modules/rollup/dist/es/shared/node-entry.js:14309:28)
at convertNode (file:///D:/foo/node_modules/.deno/[email protected]/node_modules/rollup/dist/es/shared/node-entry.js:16213:10)
at convertProgram (file:///D:/foo/node_modules/.deno/[email protected]/node_modules/rollup/dist/es/shared/node-entry.js:15456:12)
at Module.setSource (file:///D:/foo/node_modules/.deno/[email protected]/node_modules/rollup/dist/es/shared/node-entry.js:17205:24)
at async ModuleLoader.addModuleSource (file:///D:/foo/node_modules/.deno/[email protected]/node_modules/rollup/dist/es/shared/node-entry.js:21218:13)
beforeBuildCommand `deno task build` failed with exit code 1
Error beforeBuildCommand `deno task build` failed with exit code 1
Reproduction
I am unable to share the project but updating to svelte v5.35.1 from v5.34.8 introduced this issue
Logs
System Info
deno v2.4.0,
svelte v5.35.1,
vite v7.0.0,
@sveltejs/vite-plugin-svelte v5.1.0,
@sveltejs/kit v2.22.2,
Severity
blocking an upgrade
Metadata
Metadata
Assignees
Labels
awaiting submitterneeds a reproduction, or clarificationneeds a reproduction, or clarification