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

"No code available" when using manual configuration in Sb 6.5.10 and Vue 2.6.14 #19160

Open
josedialpad opened this issue Sep 9, 2022 · 1 comment

Comments

@josedialpad
Copy link

Describe the bug
Using Vue CLI v5.0.8 to create a Vue2 project, running the npm7 migration, and setting up the manual configuration for webpack, the code for the story is not generated and shows "No code available".
Though if switching to another variant in the same story (e.g. from Primary to Secondary) the "Show code" button appears and works as expected.

2022-09-09.at.20.13.04.mp4

To Reproduce

System

❯ npx sb@next info

Environment Info:

  System:
    OS: macOS 12.5.1
    CPU: (12) x64 Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
  Binaries:
    Node: 16.13.0 - ~/.nvm/versions/node/v16.13.0/bin/node
    Yarn: 1.22.18 - ~/.nvm/versions/node/v16.13.0/bin/yarn
    npm: 8.1.0 - ~/.nvm/versions/node/v16.13.0/bin/npm
  Browsers:
    Chrome: 105.0.5195.102
    Firefox: 100.0
    Safari: 15.6.1
  npmPackages:
    @storybook/addon-actions: ^6.5.10 => 6.5.10
    @storybook/addon-docs: ^6.5.10 => 6.5.10
    @storybook/addon-essentials: ^6.5.10 => 6.5.10
    @storybook/addon-interactions: ^6.5.10 => 6.5.10
    @storybook/addon-links: ^6.5.10 => 6.5.10
    @storybook/builder-webpack5: ^6.5.10 => 6.5.10
    @storybook/manager-webpack5: ^6.5.10 => 6.5.10
    @storybook/testing-library: ^0.0.13 => 0.0.13
    @storybook/vue: ^6.5.10 => 6.5.10

Additional context
Using the preset configuration, the Show Code button appears and shows the code from the story instead of the result. Switching between stories is the hack that works to show the correct code as it's shown in the video.
2022-09-09 at 19 51 51@2x

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants