Code Monkey home page Code Monkey logo

Comments (5)

tmeasday avatar tmeasday commented on July 20, 2024 2

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

Looking like this in both cases:

image

from storybook.

shilman avatar shilman commented on July 20, 2024

@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.

ndelangen avatar ndelangen commented on July 20, 2024

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.

fmal avatar fmal commented on July 20, 2024

@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.

ndelangen avatar ndelangen commented on July 20, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.