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

ComponentStory<T> produces args with 'any' as type #16981

Open
Frexuz opened this issue Dec 10, 2021 · 3 comments
Open

ComponentStory<T> produces args with 'any' as type #16981

Frexuz opened this issue Dec 10, 2021 · 3 comments

Comments

@Frexuz
Copy link

Frexuz commented Dec 10, 2021

Describe the bug
Upgraded from SB 6.3.5 to 6.4.9. Now args's type is any

Reverting to 6.3.5 makes it fine again.

6.4.9

import { ComponentMeta, ComponentStory } from '@storybook/react'

import { Avatar } from '.'

export default {
  title: 'Atoms/Avatar',
  component: Avatar,
  args: {
    url: 'https://placekitten.com/128/128',
  },
} as ComponentMeta<typeof Avatar>

const Template: ComponentStory<typeof Avatar> = (args) => {
  return <Avatar {...args} />
}

export const Playground = Template.bind({})

Screenshot 2021-12-11 at 00 28 09

6.3.5 (works)

import { Meta, Story } from '@storybook/react'

import { Avatar, AvatarProps } from '.'

export default {
  title: 'Atoms/Avatar',
  component: Avatar,
  args: {
    url: 'https://placekitten.com/128/128',
  },
} as Meta

const Template: Story<AvatarProps> = (args) => {
  return <Avatar {...args} />
}

export const Playground = Template.bind({})

System

  System:
    OS: macOS 12.0.1
    CPU: (10) arm64 Apple M1 Max
  Binaries:
    Node: 14.18.1 - ~/.nvm/versions/node/v14.18.1/bin/node
    Yarn: 1.22.17 - ~/.nvm/versions/node/v14.18.1/bin/yarn
    npm: 6.14.15 - ~/.nvm/versions/node/v14.18.1/bin/npm
  Browsers:
    Chrome: 96.0.4664.93
    Safari: 15.1
  npmPackages:
    @storybook/addon-actions: ~6.4.9 => 6.4.9
    @storybook/addon-controls: ~6.4.9 => 6.4.9
    @storybook/addon-essentials: ~6.4.9 => 6.4.9
    @storybook/addon-links: ~6.4.9 => 6.4.9
    @storybook/react: ~6.4.9 => 6.4.9
@stale
Copy link

stale bot commented Jan 9, 2022

Hi everyone! Seems like there hasn't been much going on in this issue lately. If there are still questions, comments, or bugs, please feel free to continue the discussion. Unfortunately, we don't have time to get to every issue. We are always open to contributions so please send us a pull request if you would like to help. Inactive issues will be closed after 30 days. Thanks!

@stale stale bot added the inactive label Jan 9, 2022
@kg-currenxie
Copy link

kg-currenxie commented Jun 11, 2022

Update: Same with v6.5.6

@stale stale bot removed the inactive label Jun 11, 2022
@kg-currenxie
Copy link

Update: Same with v6.5.9

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

No branches or pull requests

4 participants