question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Help wanted: Svelte example seems not working

See original GitHub issue

It 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:closed
  • Created 2 years ago
  • Comments:9 (6 by maintainers)

github_iconTop GitHub Comments

4reactions
TheComputerMcommented, Jun 5, 2021

I will fix this issue if anyone provides an esm version of addon-svelte-csf.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found