Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Svelte 5 support #741

Open
6 tasks done
rgevrek opened this issue Jul 8, 2024 · 1 comment
Open
6 tasks done

Svelte 5 support #741

rgevrek opened this issue Jul 8, 2024 · 1 comment
Labels
to triage This issue needs to be triaged

Comments

@rgevrek
Copy link

rgevrek commented Jul 8, 2024

Describe the bug

When I try to create a simple story with Svelte 5 and Vite 5, I got following error:

Error while collecting story /path-to-project/Component.story.svelte:
TypeError: Class extends value undefined is not a constructor or null
    at /path-to-project/node_modules/.pnpm/@[email protected][email protected][email protected][email protected]/node_modules/@histoire/plugin-svelte/dist/collect/Story.svelte.js:87:17
    at async ViteNodeRunner.runModule (file:///path-to-project/node_modules/.pnpm/[email protected]/node_modules/vite-node/dist/client.mjs:342:5)
    at async ViteNodeRunner.directRequest (file:///path-to-project/node_modules/.pnpm/[email protected]/node_modules/vite-node/dist/client.mjs:326:5)
    at async ViteNodeRunner.cachedRequest (file:///path-to-project/node_modules/.pnpm/[email protected]/node_modules/vite-node/dist/client.mjs:189:14)
    at async ViteNodeRunner.dependencyRequest (file:///path-to-project/node_modules/.pnpm/[email protected]/node_modules/vite-node/dist/client.mjs:223:12)
    at async /path-to-project/node_modules/.pnpm/@[email protected][email protected][email protected][email protected]/node_modules/@histoire/plugin-svelte/dist/collect/index.js:4:31
    at async ViteNodeRunner.runModule (file:///path-to-projectnode_modules/.pnpm/[email protected]/node_modules/vite-node/dist/client.mjs:342:5)
    at async ViteNodeRunner.directRequest (file:///path-to-project/node_modules/.pnpm/[email protected]/node_modules/vite-node/dist/client.mjs:326:5)
    at async ViteNodeRunner.cachedRequest (file:///path-to-projectnode_modules/.pnpm/[email protected]/node_modules/vite-node/dist/client.mjs:189:14)
    at async ViteNodeRunner.dependencyRequest (file:///path-to-project/node_modules/.pnpm/[email protected]/node_modules/vite-node/dist/client.mjs:223:12)

Reproduction

Reproduction in Stackblitz

System Info

System:
    OS: macOS 14.5
    CPU: (10) arm64 Apple M1 Pro
    Memory: 701.53 MB / 32.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 21.6.1 - /opt/homebrew/bin/node
    npm: 10.2.4 - /opt/homebrew/bin/npm
    pnpm: 8.6.6 - /opt/homebrew/bin/pnpm
    bun: 0.1.11 - ~/.bun/bin/bun
  npmPackages:
    @histoire/plugin-svelte: ^0.17.17 => 0.17.17 
    histoire: ^0.17.17 => 0.17.17 
    vite: ^5.0.3 => 5.0.3

Used Package Manager

pnpm

Validations

@rgevrek rgevrek added the to triage This issue needs to be triaged label Jul 8, 2024
Copy link

stackblitz bot commented Jul 8, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
to triage This issue needs to be triaged
Projects
None yet
Development

No branches or pull requests

1 participant