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
None of the typings work in a SvelteKit project, while they work fine in a standalone Svelte + Vite project.
When creating a standalone Svelte + Vite project using npm create vite@latest and installing Storybook with npx storybook@latest init, I get full type support and Intellisense works for defineMeta, setTemplate and Story component props.
However, when creating a SvelteKit project through npx sv create myapp and selecting Storybook to be installed, the typings do not work, and there is no Intellisense or typed component props.
Expected behavior
Typings work on Sveltre
Environment
OS: Windows 11
Node.js version: v22.11.0
addon-svelte-csf version: 5.0.0-next.11
The text was updated successfully, but these errors were encountered:
Hm, that's off. Given how different TCmp generic type is in both cases. It feels like some of the dependencies are missing. Maybe typescript-svelte-plugin?
Do you have the necessary file at .sveltekit/tsconfig.json? That is only generated after starting the actual SvelteKit app once, or running svelte-kit sync. You might need to restart VSCode/The Extension Host after that file has been generated.
Describe the bug
None of the typings work in a SvelteKit project, while they work fine in a standalone Svelte + Vite project.
When creating a standalone Svelte + Vite project using
npm create vite@latest
and installing Storybook withnpx storybook@latest init
, I get full type support and Intellisense works fordefineMeta
,setTemplate
andStory
component props.However, when creating a SvelteKit project through
npx sv create myapp
and selecting Storybook to be installed, the typings do not work, and there is no Intellisense or typed component props.Expected behavior
Typings work on Sveltre
Environment
The text was updated successfully, but these errors were encountered: