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.

Storybook composition won't load

See original GitHub issue

Hi,

What’s the problem? i am trying to setup storybook composition, and have strange problems, everything works fine on local machine, but wouldn’t work on gitlab pages, each url from composition configuration is working, and can be opened separately without problems, but when i open root storybook, all composite parts are stuck in loading, without any error in console, network requests to stories.json completed. When i run root storybook locally with urls pointing to gitlab pages - it also works.

Any ideas what might be causing this problem?

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:6
  • Comments:12 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
prewkcommented, Oct 24, 2021

Hey, I think I solved it by changing my ref urls (in the composition’s main.js) from absolute (https://bucket.s3-region.amazonaws.com/url/to/refd/storybook) to relative (/url/to/refd/storybook)

edit: I still need at least one “dummy story”, however.

1reaction
cjreysayagocommented, Nov 5, 2021

Hi @prewk your solution worked for me as well!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Storybook composition without stories · Issue #12705 - GitHub
I would like to create a storybook composition created of multiple URLs without having any of the stories defined in the project (empty...
Read more >
Storybook Composition
Storybook is a frontend workshop for building UI components and pages in isolation. Thousands of teams use it for UI development, testing, and...
Read more >
Storybook composition won't load #14679 - Issuehunt
i am trying to setup storybook composition, and have strange problems, everything works fine on local machine, but wouldn't work on gitlab pages,...
Read more >
How to troubleshoot storybook not loading stories?
I'm trying to load up the demo storybook stories ( withText , withIcon ), using this react guide, but I cannot get any...
Read more >
Composition • Chromatic docs
That means you can combine published Storybooks with your local Storybook using Composition. Chromatic does not snapshot externally composed Storybooks for ...
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