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

Group of knobs fails storybook #9469

Closed
hcz opened this issue Jan 15, 2020 · 3 comments
Closed

Group of knobs fails storybook #9469

hcz opened this issue Jan 15, 2020 · 3 comments

Comments

@hcz
Copy link
Member

hcz commented Jan 15, 2020

Addon Knobs fails the page, when:

Stacktrace:

vendors~main.15e5dcb7aff2db8aafcb.bundle.js:44847 Uncaught TypeError: Cannot convert undefined or null to object
    at keys (<anonymous>)
    at Function.keys (vendors~main.15e5dcb7aff2db8aafcb.bundle.js:44847)
    at SelectType (vendors~main.15e5dcb7aff2db8aafcb.bundle.js:6974)
    at renderWithHooks (vendors~main.15e5dcb7aff2db8aafcb.bundle.js:136718)
    at mountIndeterminateComponent (vendors~main.15e5dcb7aff2db8aafcb.bundle.js:139252)
    at beginWork$1 (vendors~main.15e5dcb7aff2db8aafcb.bundle.js:140620)
    at HTMLUnknownElement.callCallback (vendors~main.15e5dcb7aff2db8aafcb.bundle.js:120794)
    at Object.invokeGuardedCallbackDev (vendors~main.15e5dcb7aff2db8aafcb.bundle.js:120843)
    at invokeGuardedCallback (vendors~main.15e5dcb7aff2db8aafcb.bundle.js:120898)
    at beginWork$$1 (vendors~main.15e5dcb7aff2db8aafcb.bundle.js:146238)
vendors~main.15e5dcb7aff2db8aafcb.bundle.js:142301 The above error occurred in the <SelectType> component:
    in SelectType (created by PropForm)
    in label (created by Context.Consumer)
    in Styled(label) (created by Field)
    in Field (created by PropForm)
    in form (created by Context.Consumer)
    in Styled(form) (created by PropForm)
    in PropForm (created by KnobPanel)
    in div (created by SimpleBar)
    in div (created by SimpleBar)
    in div (created by SimpleBar)
    in div (created by SimpleBar)
    in div (created by SimpleBar)
    in div (created by SimpleBar)
    in SimpleBar
    in Unknown (created by Context.Consumer)
    in Styled(Component) (created by ScrollArea)
    in ScrollArea
    in Unknown (created by Context.Consumer)
    in Styled(Component) (created by KnobPanel)
    in KnobPanel
    in div (created by Context.Consumer)
    in Styled(div)
    in div (created by Context.Consumer)
    in Styled(div)
    in Unknown
    in Unknown
    in Unknown
    in Unknown (created by Context.Consumer)
    in ManagerConsumer (created by _default)
    in _default (created by Layout)
    in div (created by Context.Consumer)
    in Styled(div) (created by Panel)
    in Panel (created by Layout)
    in div (created by Context.Consumer)
    in Styled(div) (created by Main)
    in div (created by Context.Consumer)
    in Styled(div) (created by Main)
    in Main (created by Layout)
    in Layout (created by Context.Consumer)
    in WithTheme(Layout)
    in Unknown
    in Unknown
    in div (created by Context.Consumer)
    in Styled(div)
    in Unknown
    in Unknown (created by SizeMeRenderer(Component))
    in SizeMeReferenceWrapper (created by SizeMeRenderer(Component))
    in SizeMeRenderer(Component) (created by SizeMe(Component))
    in SizeMe(Component) (created by Manager)
    in ThemeProvider (created by Manager)
    in Manager (created by Context.Consumer)
    in Location (created by QueryLocation)
    in QueryLocation (created by Root)
    in LocationProvider (created by Root)
    in HelmetProvider (created by Root)
    in Root

React will try to recreate this component tree from scratch using the error boundary you provided, LocationProvider.
logCapturedError @ vendors~main.15e5dcb7aff2db8aafcb.bundle.js:142301
vendors~main.15e5dcb7aff2db8aafcb.bundle.js:3442 Uncaught TypeError: Cannot convert undefined or null to object
    at keys (<anonymous>)
    at Function.keys (vendors~main.15e5dcb7aff2db8aafcb.bundle.js:44847)
    at SelectType (vendors~main.15e5dcb7aff2db8aafcb.bundle.js:6974)
    at renderWithHooks (vendors~main.15e5dcb7aff2db8aafcb.bundle.js:136718)
    at mountIndeterminateComponent (vendors~main.15e5dcb7aff2db8aafcb.bundle.js:139252)
    at beginWork$1 (vendors~main.15e5dcb7aff2db8aafcb.bundle.js:140620)
    at HTMLUnknownElement.callCallback (vendors~main.15e5dcb7aff2db8aafcb.bundle.js:120794)
    at Object.invokeGuardedCallbackDev (vendors~main.15e5dcb7aff2db8aafcb.bundle.js:120843)
    at invokeGuardedCallback (vendors~main.15e5dcb7aff2db8aafcb.bundle.js:120898)
    at beginWork$$1 (vendors~main.15e5dcb7aff2db8aafcb.bundle.js:146238)
vendors~main.15e5dcb7aff2db8aafcb.bundle.js:142301 The above error occurred in the <LocationProvider> component:
    in LocationProvider (created by Root)
    in HelmetProvider (created by Root)
    in Root

Consider adding an error boundary to your tree to customize error handling behavior.
Visit https://fb.me/react-error-boundaries to learn more about error boundaries.
logCapturedError @ vendors~main.15e5dcb7aff2db8aafcb.bundle.js:142301
vendors~main.15e5dcb7aff2db8aafcb.bundle.js:11992 TypeError: Cannot convert undefined or null to object
    at keys (<anonymous>)
    at Function.keys (vendors~main.15e5dcb7aff2db8aafcb.bundle.js:44847)
    at SelectType (vendors~main.15e5dcb7aff2db8aafcb.bundle.js:6974)
    at renderWithHooks (vendors~main.15e5dcb7aff2db8aafcb.bundle.js:136718)
    at mountIndeterminateComponent (vendors~main.15e5dcb7aff2db8aafcb.bundle.js:139252)
    at beginWork$1 (vendors~main.15e5dcb7aff2db8aafcb.bundle.js:140620)
    at HTMLUnknownElement.callCallback (vendors~main.15e5dcb7aff2db8aafcb.bundle.js:120794)
    at Object.invokeGuardedCallbackDev (vendors~main.15e5dcb7aff2db8aafcb.bundle.js:120843)
    at invokeGuardedCallback (vendors~main.15e5dcb7aff2db8aafcb.bundle.js:120898)
    at beginWork$$1 (vendors~main.15e5dcb7aff2db8aafcb.bundle.js:146238)
error @ vendors~main.15e5dcb7aff2db8aafcb.bundle.js:11992

To Reproduce
Steps to reproduce the behavior:

  1. Open the example with knobs
  2. Page fails
@stale
Copy link

stale bot commented Feb 5, 2020

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 Feb 5, 2020
@stale
Copy link

stale bot commented Mar 6, 2020

Hey there, it's me again! I am going close this issue to help our maintainers focus on the current development roadmap instead. If the issue mentioned is still a concern, please open a new ticket and mention this old one. Cheers and thanks for using Storybook!

@stale stale bot closed this as completed Mar 6, 2020
@hcz
Copy link
Member Author

hcz commented Aug 17, 2020

It was fixed in 6.*

This issue was closed.
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

1 participant