import adapter from '@sveltejs/adapter-auto';
import { vitePreprocess } from '@sveltejs/kit/vite';
/** @type {import('@sveltejs/kit').Config} */
const config = {
extensions: ['.svelte'],
// Consult https://kit.svelte.dev/docs/integrations#preprocessors
// for more information about preprocessors
preprocess: [ vitePreprocess()],
vitePlugin: {
inspector: true,
},
kit: {
// adapter-auto only supports some environments, see https://kit.svelte.dev/docs/adapter-auto for a list.
// If your environment is not supported or you settled on a specific environment, switch out the adapter.
// See https://kit.svelte.dev/docs/adapters for more information about adapters.
adapter: adapter()
}
};
export default config;
Describe the bug
We've updated to svelte 5.0.0-next.9 and haven't opt-in runes mode like described here
Based on the docs
I'm expecting Svelte 4 code like
$$props
is still working. But we're getting the error:svelte cannot use $$props in runes mode
The affected svelte file: https://github.com/skeletonlabs/skeleton/blob/master/packages/skeleton/src/lib/components/Stepper/Stepper.svelte#L137
Our
svelte.config.js
fileReproduction
https://github.com/mmailaender/svelte5
Run
Logs
No response
System Info
Severity
blocking an upgrade