question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Library upgrade of react-treebeard to 3.2.0 breaks storybook ui.

See original GitHub issue

Describe the bug Running an upgrade on storybook upgrades react-treebeard dependency to 3.2.0, which breaks storybook/ui.

To Reproduce Steps to reproduce the behavior:

  1. delete node_modules and package-lock.json
  2. Run npm install
  3. run storybook
  4. Storybook starts, but then immediately becomes a blank page, console shows errors with TreeBeard.

Expected behavior Storybook should start

Screenshots … blank screen

Code snippets … not applicable

System:

  • OS: MacOS
  • Device: Macbook Pro 2018
  • Browser: chrome
  • Framework: react
  • Version: 1.0.0

Additional context Suggest either changing package.json from “^3.1.0” to “3.1.0” to prevent auto upgrade, OR, fix codebase to work with updated react-treebeard library.

Error:

The above error occurred in the <Container> component:
    in Container (created by ContainerDecorator)
    in div (created by MenuItem)
    in MenuItem (created by ContainerDecorator)
    in ContainerDecorator (created by Context.Consumer)
    in Unknown (created by NodeHeader)
    in NodeHeader (created by TreeNode)
    in li (created by Context.Consumer)
    in Styled(li) (created by TreeNode)
    in TreeNode (created by TreeNode)
    in ul (created by Context.Consumer)
    in Styled(ul) (created by TreeNode)
    in Transition (created by VelocityTransitionGroupChild)
    in VelocityTransitionGroupChild (created by VelocityTransitionGroup)
    in div (created by TransitionGroup)
    in TransitionGroup (created by VelocityTransitionGroup)
    in VelocityTransitionGroup (created by Drawer)
    in Drawer (created by TreeNode)
    in li (created by Context.Consumer)
    in Styled(li) (created by TreeNode)
    in TreeNode (created by TreeBeard)
    in ul (created by Context.Consumer)
    in Styled(ul) (created by TreeBeard)
    in TreeBeard (created by Stories)
    in div (created by Context.Consumer)
    in Styled(div) (created by ForwardRef)
    in ForwardRef (created by Stories)
    in Stories (created by StoriesPanel)
    in div (created by Context.Consumer)
    in Styled(div) (created by ForwardRef)
    in ForwardRef (created by StoriesPanel)
    in StoriesPanel (created by Container(StoriesPanel))
    in Container(StoriesPanel) (created by storiesPanel)
    in storiesPanel (created by Layout)
    in div (created by Context.Consumer)
    in Styled(div) (created by ForwardRef)
    in ForwardRef (created by Layout)
    in div (created by Context.Consumer)
    in Styled(div) (created by ForwardRef)
    in ForwardRef (created by Layout)
    in div
    in Pane
    in div
    in SplitPane (created by Layout)
    in Layout (created by Layout)
    in div (created by Context.Consumer)
    in Styled(div) (created by ForwardRef)
    in ForwardRef (created by Layout)
    in div (created by Layout)
    in Unknown (created by Layout)
    in Layout (created by Container(Layout))
    in Container(Layout)
    in div

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:9
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

5reactions
shilmancommented, Apr 15, 2019

Released: https://github.com/storybooks/storybook/releases/tag/v4.1.18

Closing – please LMK if there are any problems with the release!

3reactions
shilmancommented, Apr 12, 2019

Thanks for the heads up. 🙏 I’ll update 4.x this weekend!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Upgrading Storybook
This upgrades all of the Storybook packages in your project to the latest stable version, perform confidence checks of your package versions, and...
Read more >
@storybook/react-native-server | Yarn - Package Manager
With Storybook for React Native you can design and develop individual React ... server addons and update all dependencies to use storybook 5.3.20...
Read more >
module not found error can't resolve 'fs' in dotenv react
To solve this: Create the .env file at the root level of you app; Name your variables beginning with REACT_APP_ // that's the...
Read more >
Demo project for a bug between storybook/ui and react ...
@storybook/ui@^4.0.0 depended on react-treebeard@^3.1.0 — as soon as react-treebeard released version 3.2.0 , storybook v4 started to break ...
Read more >
9ae6ecd81d304401287c02b9e6...
6.0.6 (August 14, 2020). Bug Fixes. CLI: Fix upgrade to warn when no packages found (#11993); Addon-docs: Fix blocks type export (#11987) ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found