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

null in args leads to an invalid argType #12732

Closed
Hypnosphi opened this issue Oct 10, 2020 · 3 comments
Closed

null in args leads to an invalid argType #12732

Hypnosphi opened this issue Oct 10, 2020 · 3 comments
Assignees
Milestone

Comments

@Hypnosphi
Copy link
Member

export default {
  title: 'Title,

  args: {foo: null}
};

leads to following error in preview:

Cannot read property 'defaultValue' of undefined

This is especially painful in connection with #12729

It only reproduces if you don't use docs addon

@shilman shilman modified the milestones: 6.1 args, 6.0.x Oct 10, 2020
@shilman shilman self-assigned this Oct 15, 2020
@thibaudcolas
Copy link

This is the same underlying issue as #12540, although I haven’t tried what would happen to this in the Storybook UI.

@shilman
Copy link
Member

shilman commented Nov 6, 2020

Gadzooks!! I just released https://github.com/storybookjs/storybook/releases/tag/v6.1.0-beta.3 containing PR #13029 that references this issue. Upgrade today to the @next NPM tag to try it out!

npx sb upgrade --prerelease

Closing this issue. Please re-open if you think there's still more to do.

@shilman
Copy link
Member

shilman commented Nov 9, 2020

Yowza!! I just released https://github.com/storybookjs/storybook/releases/tag/v6.1.0-beta.6 containing PR #13051 that references this issue. Upgrade today to the @next NPM tag to try it out!

npx sb upgrade --prerelease

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

3 participants