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

[Bug]: @storybook/addon-storysource is not working correctly after upgrading to 8.5.0 or newer versions #30428

Open
k4rl1 opened this issue Jan 31, 2025 · 0 comments

Comments

@k4rl1
Copy link

k4rl1 commented Jan 31, 2025

Describe the bug

When upgrading to storybook 8.5.0 or higher when you open a story the first time the code section just shows loading source...
when you switch then to a different story and afterwards switch back the the previous one the code is shown.

Worked correctly with 8.4.7 or earlier versions.

Thanks for taking a look.

Reproduction link

https://stackblitz.com/edit/github-s7irpf5e-cwmbsazi?file=.storybook%2Fmain.ts

Reproduction steps

you need to have use storybook plugin @storybook/addon-storysource with version 8.5.0 or higher
select a story -> the code block will just show loading source...
select a different story -> which again will just show show loading source...
navigate back to the previous story and it will show the code correctly

works fine with 8.4.7 or below.

System

Storybook Environment Info:

  System:
    OS: macOS 14.7.1
    CPU: (10) arm64 Apple M2 Pro
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 18.20.4 - ~/.nvm/versions/node/v18.20.4/bin/node
    npm: 10.7.0 - ~/.nvm/versions/node/v18.20.4/bin/npm <----- active
    pnpm: 9.12.3 - ~/.nvm/versions/node/v18.20.4/bin/pnpm
  Browsers:
    Chrome: 132.0.6834.160
    Safari: 18.2
  npmPackages:
    @storybook/addon-essentials: 8.5.2 => 8.5.2 
    @storybook/addon-links: 8.5.2 => 8.5.2 
    @storybook/addon-storysource: 8.5.2 => 8.5.2 
    @storybook/blocks: 8.5.2 => 8.5.2 
    @storybook/test: 8.5.2 => 8.5.2 
    @storybook/vue3: 8.5.2 => 8.5.2 
    @storybook/vue3-vite: 8.5.2 => 8.5.2 
    eslint-plugin-storybook: ^0.8.0 => 0.8.0 
    storybook: 8.5.2 => 8.5.2 
    storybook-vue3-router: ^5.0.0 => 5.0.0

Additional context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Development

No branches or pull requests

2 participants