Help wanted: Svelte example seems not working
See original GitHub issueIt seems like that the svelte example is not working. Here are the steps to reproduce the error. Can you verify this behaviour?
Install vite with svelte tempalte
npm init @vitejs/app example-svelte-vite-and-storybook -- --template svelte
Install dependencies
npm install
Install storybook with next dist-tag
npx sb@next init --builder storybook-builder-vite
Run storybook dev server
npm run storybook
Error Message
Unexpected default export without title: undefined
node_modules/@storybook/core-client/dist/esm/preview/loadCsf.js/loadStories2/</<@http://localhost:6006/@fs/Users/andre/src/github/dev/yetanotherblog/example-svelte-vite-and-storybook/node_modules/storybook-builder-vite/node_modules/.vite/chunk-7UV63S5J.js?v=7d8abd40:985:19
node_modules/@storybook/core-client/dist/esm/preview/loadCsf.js/loadStories2/<@http://localhost:6006/@fs/Users/andre/src/github/dev/yetanotherblog/example-svelte-vite-and-storybook/node_modules/storybook-builder-vite/node_modules/.vite/chunk-7UV63S5J.js?v=7d8abd40:980:15
node_modules/@storybook/client-api/dist/esm/config_api.js/ConfigApi2/this.configure@http://localhost:6006/@fs/Users/andre/src/github/dev/yetanotherblog/example-svelte-vite-and-storybook/node_modules/storybook-builder-vite/node_modules/.vite/chunk-WMD4FMNA.js?v=7d8abd40:3455:11
node_modules/@storybook/core-client/dist/esm/preview/loadCsf.js/loadCsf2/<@http://localhost:6006/@fs/Users/andre/src/github/dev/yetanotherblog/example-svelte-vite-and-storybook/node_modules/storybook-builder-vite/node_modules/.vite/chunk-7UV63S5J.js?v=7d8abd40:1079:19
configure2@http://localhost:6006/@fs/Users/andre/src/github/dev/yetanotherblog/example-svelte-vite-and-storybook/node_modules/storybook-builder-vite/node_modules/.vite/@storybook_svelte.js?v=7d8abd40:235:10
@http://localhost:6006/virtual:/@storybook/builder-vite/vite-app.js:65:14
Do you have any pointers for me regarding this error? Or maybe I’m just holding it wrong 🤷♂️
Thank you so much for building this! Can’t wait to finally use it with Svelte 🧡
Issue Analytics
- State:
- Created 2 years ago
- Comments:9 (6 by maintainers)
Top Results From Across the Web
Help wanted: Svelte example seems not working #16 - GitHub
It seems like that the svelte example is not working. Here are the steps to reproduce the error. Can you verify this behaviour?...
Read more >Svelte has issues; let's talk. The metaphorical man behind the…
After working with Svelte, I've found a lot to be lacking. I want to make this clear: Svelte is fast, but my issues...
Read more >Lifecycle / onMount • Svelte Tutorial
Every component has a lifecycle that starts when it is created, and ends when it is destroyed. There are a handful of functions...
Read more >Svelte transition between two elements "jumps" - Stack Overflow
Seems a little inelegant, even if it were working. For some reason, the transition is overriding setting a class that sets position:absolute.
Read more >What I Like About Writing Styles with Svelte | CSS-Tricks
For example, a modal component may want to toggle a class to style the ... CSS preprocessors feels a lot less necessary when...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I will fix this issue if anyone provides an esm version of addon-svelte-csf.
PR Fix: https://github.com/eirslett/storybook-builder-vite/pull/25