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
Single Story Hoisting isn't working #14362
Comments
Your names don't match. Story exports are "title cased" to get the name, in this case Try Or if you don't want the space, try Admittedly this is confusing. I wonder if we should consider the raw export name as well. At very least we can update the docs with an example that reflects this scenario. |
That fixed it, thanks! I do see this warning in the console now, though:
Any ideas? |
Okay, it turns out that you must use default exports with Vue i.e.:
I fixed that, but now I'm getting the following warning:
|
@sluther does it need to be |
That was indeed the issue. Thanks! |
Describe the bug
Single story hoisting isn't working
Expected behavior
I expect the single story to be hoisted as described in the documentation
Screenshots
Code snippets
System
Environment Info:
System:
OS: macOS 10.15.7
CPU: (12) x64 Intel(R) Core(TM) i9-8950HK CPU @ 2.90GHz
Binaries:
Node: 12.13.1 - ~/.nvm/versions/node/v12.13.1/bin/node
Yarn: 1.22.10 - ~/.nvm/versions/node/v12.13.1/bin/yarn
npm: 6.12.1 - ~/.nvm/versions/node/v12.13.1/bin/npm
Browsers:
Chrome: 89.0.4389.90
Firefox: 69.0.3
Safari: 14.0.3
npmPackages:
@storybook/addon-actions: ^6.2.0-rc.7 => 6.2.0-rc.9
@storybook/addon-essentials: ^6.2.0-rc.7 => 6.2.0-rc.9
@storybook/vue3: ^6.2.0-rc.7 => 6.2.0-rc.9
The text was updated successfully, but these errors were encountered: