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.

?path=/story/* initially redirects to ?path=/undefined/undefined

See original GitHub issue

Describe the bug When initially starting the dev server, it does a series of redirects. But it often (not always) ends up in this incorrect state:

/ -> /?path=/story/* -> /?path=/undefined/undefined

The side navigation is displayed correctly (all stories and links). However, the links are corrupt: ?path=/undefined/teststory--base-web where the undefined should be story.

When I open the base URL manually again, it works. I can’t reproduce this but it happens quite frequently (about half of times).

I have basic.stories.js with title: "Test Story" and export const BaseWeb.

Expected behavior

The initial redirect should end up at:

/?path=/story/test-story--base-web

System: Environment Info:

System: OS: macOS 10.15.5 CPU: (8) x64 Intel® Core™ i7-8559U CPU @ 2.70GHz Binaries: Node: 10.16.3 - ~/.volta/tools/image/node/10.16.3/6.9.0/bin/node Yarn: 1.19.1 - ~/.volta/tools/image/yarn/1.19.1/bin/yarn npm: 6.9.0 - ~/.volta/tools/image/node/10.16.3/6.9.0/bin/npm Browsers: Chrome: 83.0.4103.106 Firefox: 77.0.1 Safari: 13.1.1 npmPackages: @storybook/addon-a11y: 6.0.0-beta.33 => 6.0.0-beta.33 @storybook/addon-actions: 6.0.0-beta.33 => 6.0.0-beta.33 @storybook/addon-knobs: 6.0.0-beta.33 => 6.0.0-beta.33 @storybook/addon-links: 6.0.0-beta.33 => 6.0.0-beta.33 @storybook/addons: 6.0.0-beta.33 => 6.0.0-beta.33 @storybook/react: 6.0.0-beta.33 => 6.0.0-beta.33

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:3
  • Comments:14 (6 by maintainers)

github_iconTop GitHub Comments

4reactions
shilmancommented, Jun 25, 2020

Yee-haw!! I just released https://github.com/storybookjs/storybook/releases/tag/v6.0.0-beta.36 containing PR #11293 that references this issue. Upgrade today to try it out!

You can find this prerelease on the @next NPM tag.

4reactions
tmeasdaycommented, Jun 23, 2020

Yep, thanks team. We’ve identified where the problem is and @ndelangen and I’ll work towards a solution in the next day or two

Read more comments on GitHub >

github_iconTop Results From Across the Web

No results found

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