storybook: TypeError: _ref2 is undefined

Describe the bug When I start storybook, it builds without error but it crashes in browser wiht the error

TypeError: _ref2 is undefined

The above error occurred in the <Manager> component:
    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.

To Reproduce Steps to reproduce the behavior:

  1. Update SB to 6.0.0-alpha.24
  2. Start SB and go on your browser
  3. The page should be blank with an error message in console

Expected behavior Storybook should start

Screenshots image

System:

Environment Info:

  System:
    OS: Linux 4.15 Ubuntu 18.04.4 LTS (Bionic Beaver)
    CPU: (8) x64 Intel(R) Core(TM) i7-8650U CPU @ 1.90GHz
  Binaries:
    Node: 12.15.0 - /usr/bin/node
    npm: 6.13.4 - /usr/bin/npm
  Browsers:
    Chrome: 80.0.3987.106
    Firefox: 73.0
  npmPackages:
    @storybook/addon-a11y: ^6.0.0-alpha.24 => 6.0.0-alpha.24 
    @storybook/addon-docs: ^6.0.0-alpha.24 => 6.0.0-alpha.24 
    @storybook/addon-jest: ^6.0.0-alpha.24 => 6.0.0-alpha.24 
    @storybook/addon-knobs: ^6.0.0-alpha.24 => 6.0.0-alpha.24 
    @storybook/addon-viewport: ^6.0.0-alpha.24 => 6.0.0-alpha.24 
    @storybook/addons: ^6.0.0-alpha.24 => 6.0.0-alpha.24 
    @storybook/vue: ^6.0.0-alpha.24 => 6.0.0-alpha.24 

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 20 (9 by maintainers)

Most upvoted comments

@shilman Well, can’t figure out what I’ve done but this seem to be gone. I tried to remove node_modules and even package-lock.json, maybe one of this fixed it

Sorry about that @jonhuteau – this was due to a bad merge. Fixed and in the process of re-releasing now! 😬