You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In svelte.config.js we want to be able to enable runes globally. At present it doesn't work.
Reproduction
pnpm create svelte@latest my-app2
Skeleton project
Typescript
ESLint
Prettier
Svelte 5 beta
cd my-app2
pnpm install
set runes: true in svelte.config.js
pnpm run dev -- --open
Logs
CompileError: Cannot use `export let`in runes mode — use $props instead
at error (file:///private/tmp/my-app2/node_modules/.pnpm/[email protected]/node_modules/svelte/src/compiler/errors.js:568:8)
at ExportNamedDeclaration (file:///private/tmp/my-app2/node_modules/.pnpm/[email protected]/node_modules/svelte/src/compiler/phases/2-analyze/validation.js:628:3)
at go (file:///private/tmp/my-app2/node_modules/.pnpm/[email protected]/node_modules/svelte/src/compiler/phases/visitors.js:49:5)
at visitor (file:///private/tmp/my-app2/node_modules/.pnpm/[email protected]/node_modules/svelte/src/compiler/phases/visitors.js:64:4)
at go (file:///private/tmp/my-app2/node_modules/.pnpm/[email protected]/node_modules/svelte/src/compiler/phases/visitors.js:49:5)
at visitor (file:///private/tmp/my-app2/node_modules/.pnpm/[email protected]/node_modules/svelte/src/compiler/phases/visitors.js:64:4)
at Object.next (file:///private/tmp/my-app2/node_modules/.pnpm/[email protected]/node_modules/zimmerframe/src/walk.js:106:21)
at go (file:///private/tmp/my-app2/node_modules/.pnpm/[email protected]/node_modules/svelte/src/compiler/phases/visitors.js:45:29)
at next (file:///private/tmp/my-app2/node_modules/.pnpm/[email protected]/node_modules/svelte/src/compiler/phases/visitors.js:55:7)
at _ (file:///private/tmp/my-app2/node_modules/.pnpm/[email protected]/node_modules/svelte/src/compiler/phases/scope.js:666:4)
Describe the bug
In svelte.config.js we want to be able to enable runes globally. At present it doesn't work.
Reproduction
Logs
System Info
Severity
blocking an upgrade
The text was updated successfully, but these errors were encountered: