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

React: No stories with DSM component container IDs were found #32

Open
aggroman opened this issue Oct 12, 2020 · 3 comments
Open

React: No stories with DSM component container IDs were found #32

aggroman opened this issue Oct 12, 2020 · 3 comments

Comments

@aggroman
Copy link

It's working when I run dsm-storybook preview.

But when I run dsm-storybook publish the cli returns "No stories with DSM component container IDs were found"

import { Story, Meta } from '@storybook/react'
import { ButtonProps } from '@material-ui/core'
import { Button } from './Button'

export default {
  title: 'Atoms/Button',
  parameters: {
    component: Button,
    'in-dsm': {
      id: '5f8406f3b50e298dd216f0ba',
      versionFilePath: '../../../components/versionFile.json',
    },
  },
} as Meta

const Template: Story<ButtonProps> = (args) => <Button {...args} />

export const Primary = Template.bind({})
Primary.parameters = {
  'in-dsm': {
    id: '5f8406f3b50e298dd216f0ba',
    versionFilePath: '../../../components/versionFile.json',
  },
}
Primary.args = {
  variant: 'contained',
  color: 'primary',
  children: 'Primary Button',
}`
@rafaelderolez
Copy link

rafaelderolez commented Jan 22, 2021

It only seems to work when using the following syntax (which is deprecated in 6.X.). I suspect dsm-storybook isn't fully compatible with Storybook 6.X.

Primary.story = {
  parameters: {
    'in-dsm': {
      id: '<id>',
    },
  },
};

@GetafixIT
Copy link

It seems that implementing a deprecated methodology isn't a good solution here 7 months on.

@mortal94 - Any chance of an update? I'd like to know if this is a bug (as per @rafaelderolez) or a miss-configuration??

@thorinmesser
Copy link

@mortal94 I have the same question, is there a timeline for storybook 6 support?

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

No branches or pull requests

4 participants