Comments (5)
This seems to be some kind of webpack/yarn bundle issue @shilman I can see @storybook/components
in two different chunks, specifically try searching for this "../.yarn/__virtual__/@storybook-components-virtual-a8967408c7/4/.yarn/berry/cache/@storybook-components-npm-8.1.3-da5969b1b0-10.zip/node_modules/@storybook/components/dist/index.mjs"
, it'll be in both these files:
![image](https://private-user-images.githubusercontent.com/132554/334227818-796a7734-2744-4922-9c7d-312a20d15448.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjE0NTEzNjYsIm5iZiI6MTcyMTQ1MTA2NiwicGF0aCI6Ii8xMzI1NTQvMzM0MjI3ODE4LTc5NmE3NzM0LTI3NDQtNDkyMi05YzdkLTMxMmEyMGQxNTQ0OC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNzIwJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDcyMFQwNDUxMDZaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT02MDZjZDIyMmRiMjMwOTM5OWM4MTJmMTQwZWZmNTQyNGJiNWFjOWY4ZDk0MWY2MzdlZWNlZjljYzFjZGNmNzFiJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.2mlHb1Dzam6b_i9qjvwtlJ1LDiwzXBPcSrr4zRIJc3g)
Looking like this in both cases:
![image](https://private-user-images.githubusercontent.com/132554/334227860-14b14c38-4226-417f-9cf1-c0169e09a882.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjE0NTEzNjYsIm5iZiI6MTcyMTQ1MTA2NiwicGF0aCI6Ii8xMzI1NTQvMzM0MjI3ODYwLTE0YjE0YzM4LTQyMjYtNDE3Zi05Y2YxLWMwMTY5ZTA5YTg4Mi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNzIwJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDcyMFQwNDUxMDZaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT04ZGE5ZjgzNjc4ZjM0YWU5Yzk0Yjk4YjRmYzczNzdjYWE3NTliNzk5NWFhMDAwY2JhOTVlYTczMWZkY2Y1ZTY0JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.SDpqYkB-HBgy-uCthw_G3R25YSD12KV6CX7-ZiJf7tA)
from storybook.
@storybookjs/core This looks like some kind of issue with the theme provider. From what I can tell all the package versions are correct, and the Docs page is wrapped in a valid ThemeProvider
, so I'm really not sure what's going on here. Any ideas?
from storybook.
What's the use case of rendering storybook/components inside stories? This is not it's intended use-case.
For documentation blocks we have @storybook/blocks
.
from storybook.
@ndelangen not strictly inside stories but for more complex documentation pages, where I oftentimes need to import things like buttons, tabs etc. It makes total sense to me to reuse the UI of Storybook for that purpose and this used to work without breaking the rendering in storybook@7
from storybook.
I sympathize that it worked pre 8.0.
However the components defined in @storybook/components
require a special context present.
Though it worked.. this was not intended to work / officially supported.
I would be open to adding some more components for blocks, which would then be officially supported.
from storybook.
Related Issues (20)
- [Tracking]: Replace Lodash Usage with Native Functionality or Alternatives HOT 8
- CLI: Add SvelteKit to storybook@latest init in empty directory HOT 1
- [Bug]: @storybook/core is (wrongly) specifying @storybook/global as a devDependency HOT 5
- [Bug]: Storybook doesn't work with `Yarn 4 (nodeLinker: pnpm)`, `Vue 3`, `Vite 5`, `Storybook 8`
- [Bug]: Onboarding fails when PascalCase story is created HOT 1
- Vitest: Create "Component Coverage" per story file HOT 1
- Vitest|Storybook: Create communication channel to gather coverage information HOT 1
- File Selection: Show coverage for all relevant files HOT 1
- Storybook Coverage Viewer Addon - Create UI for Displaying Coverage Data HOT 1
- [Bug]: Boolean controls break when attributes names use hyphens(-) in Lit HOT 1
- [Bug]: error when starting `storybook` using `postcss-url` plugin to inline assets HOT 1
- [Bug]: Cannot access Next router in custom container when using NextJS preset with Docs add-on
- [Bug]: Docs broken with high CPU usage HOT 3
- [Bug]: Docs page menu item cannot be clicked; the page does not respond. HOT 4
- [Bug]: Docs page renders the Toast multiple times
- [Bug]: Addon build fails due to missing `@storybook/manager/globals` on 8.2.x
- [Bug]: links on docs page for config point to 404 HOT 2
- [Bug]: @storybook/addon-coverage does not work with CRA (Create React App) setup HOT 1
- [Documentation]: Angular - The documentation for handing event emitters is non existant. HOT 2
- [Bug]: Seeing warning about CJS even though my project is ESM HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from storybook.