storybook icon indicating copy to clipboard operation
storybook copied to clipboard

[Bug]: story source code not avaliable with vite builder

Open HongSiyuan opened this issue 2 years ago • 1 comments

Describe the bug

docs page dose not show story source code with vite builder. It shows "No code avaliable". Storybook version: 7.0.0-alpha.40

image

Reproduce

npm init vue@latest
cd <your-project-name>
npm install
npx storybook init@next

To Reproduce

No response

System

Environment Info:

  System:
    OS: macOS 12.5.1
    CPU: (12) x64 Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
  Binaries:
    Node: 14.20.1 - ~/.nvm/versions/node/v14.20.1/bin/node
    Yarn: 1.22.19 - ~/.nvm/versions/node/v14.20.1/bin/yarn
    npm: 6.14.17 - ~/.nvm/versions/node/v14.20.1/bin/npm
  Browsers:
    Chrome: 106.0.5249.119
    Firefox: 105.0
    Safari: 15.6.1
  npmPackages:
    @storybook/addon-essentials: ^7.0.0-alpha.40 => 7.0.0-alpha.40 
    @storybook/addon-interactions: ^7.0.0-alpha.40 => 7.0.0-alpha.40 
    @storybook/addon-links: ^7.0.0-alpha.40 => 7.0.0-alpha.40 
    @storybook/testing-library: ^0.0.13 => 0.0.13 
    @storybook/vue3: ^7.0.0-alpha.40 => 7.0.0-alpha.40 
    @storybook/vue3-vite: ^7.0.0-alpha.40 => 7.0.0-alpha.40

Additional context

No response

HongSiyuan avatar Oct 20 '22 08:10 HongSiyuan

related https://github.com/storybookjs/builder-vite/issues/111

HongSiyuan avatar Oct 20 '22 09:10 HongSiyuan

Jiminy cricket!! I just released https://github.com/storybookjs/storybook/releases/tag/v7.0.0-beta.0 containing PR #20147 that references this issue. Upgrade today to the @next NPM tag to try it out!

npx sb upgrade --prerelease

Closing this issue. Please re-open if you think there's still more to do.

shilman avatar Dec 08 '22 08:12 shilman