Coder Social home page Coder Social logo

Comments (6)

mririgoyen avatar mririgoyen commented on May 5, 2024

More Info

Trying to use the render function causes similiar behavior.

Story:

export const Usage: Story = {
  name: 'Usage',
  render: (args) => (
    <div className="flex flex-col gap-4">
      <Typography variant="hero">Hero</Typography>
    </div>
  ),
};

Output:

<div className="flex flex-col gap-4">
  <[object Object] variant="hero">
    Hero
  </[object Object]>
</div>

from storybook.

kasperpeulen avatar kasperpeulen commented on May 5, 2024

@mririgoyen Could you check if you can reproduce this issue in 8.0.0-rc.3? Might be that this bug is introduced in 8.0.0-rc.4

from storybook.

0x00000001A avatar 0x00000001A commented on May 5, 2024

I'm using the 8.0.0 version and experiencing the same issue.
Every story produces [Object object] instead of a component name. The strange thing is that if I remove the displayName property by delete MyButton.displayName somewhere before the story meta declaration, everything works ok.

I have tried webpack and vite builders, and there is no difference.

import UpButton from './UpButton'
import {UpButtonProps} from './UpButton.type'

delete UpButton.displayName

const UpButtonStories: Meta<UpButtonProps> = {
  title: 'Buttons/UpButton',
  component: UpButton,
  tags: ['autodocs']
}

from storybook.

mririgoyen avatar mririgoyen commented on May 5, 2024

@mririgoyen Could you check if you can reproduce this issue in 8.0.0-rc.3? Might be that this bug is introduced in 8.0.0-rc.4

Pinning to 8.0.0-rc.3 does not resolve the issue.

EDIT: I've stepped down all the way to rc.1 and the issue is always there.

from storybook.

flobiwankenobi avatar flobiwankenobi commented on May 5, 2024

Looks like this issue relates to #20920

from storybook.

yannbf avatar yannbf commented on May 5, 2024

Hey everyone! This issue is solved in #26566 and will be released soon. Thanks for your patience 🙏

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.