-
-
Notifications
You must be signed in to change notification settings - Fork 173
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
Failing to fetch stories with Storybook 7.0 #446
Comments
I am looking upgrading as well on this fine Storybook 7 release day, and wondering if there are any pointers to how this might be fixed? |
I'm going to one up this one. |
Same issue, a fix would help. 🙏 |
yes, same issue. A fix would help! |
I'm in the middle of the upgrade to SB 7 and hitting this roadblock as well |
Looks like this could be something to do with a cors issue on docker/chrome. When I open the docker logs while running loki I see the following:
|
Other people having trouble with storybook 7 may want to look at #436 |
@tony-show You'll need to run your tests directly against a running Storybook server, rather than against a static export. See the |
I could not find an example with How can I run the Storybook server in parallel with the tests in CI so that the Storybook server completes the process after the screenshot tests in CI are done? |
I solved the problem with running Loki + Storybook 7 screenshot tests in CI! 🎉 Instructions:
Example from my package.json: |
@tony-show Cool! And how do you deal with killing the process of the local server, which ends with code 1 (error)? |
Yes, that was the next bug in CI with successfully completed screenshot tests 😂 We need to add the Like this:
And everything works great in CI! 🎉 |
Is there really no way to run loki on the build output of a storybook 7 build? running both in parallel in CI only looks like a workaround and not like a solution |
|
May I see your GitHub project, please? |
I have trouble, locally all tests pass, but from GitHub actions - 80% of tests fail |
Every screenshot is different with this...
|
Good, one more solution: |
Fixed in 0.32.0 |
storybook 7.1 , loki 0.32.0 on CI it always fires this Error ( , are u sure it fixed ? |
I've seen many times on the forums that loki doesn't work with storybook > 7 in production build and in CI. None of the solutions helped. Any opinions on how to fix this ? |
Issue
After upgrading to Storybook to
v7.0.0-rc.3
, when running loki with docker locally on macos, we are currently gettingFailed fetching stories
error.Screenshots / Logs
It appears static assets in
index.html
from the Storybook build are now being loaded with a./
in their path ie.Storybook v7
<script src="./runtime~main.bddd1b2d.iframe.bundle.js"></script>
Storybook v6
<script src="runtime~main.bddd1b2d.iframe.bundle.js"></script>
Environment
macOS
Ventura v13.2.1node
v16.15.0npm
v8.5.5loki
v0.31.1storybook
v7.0.0-rc.3Additional context
Any suggestions/ideas appreciated – thanks! 🙏
The text was updated successfully, but these errors were encountered: