-
Notifications
You must be signed in to change notification settings - Fork 73
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
Issue with new version of the cli #136
Comments
Hmm this seems like a development request (for HMR) against our uploaded build. I wonder what has happened here? Certainly a normal Storybook build doesn't make that request. What if you run Could this have something to do with #81 @ndelangen? |
Could be related. livereload.js is an ember specific thing, I think. it's NOT HMR. HMR request are for sure not made by storybook in static mode, (they also look different). @jonniebigodes I think the best way forward for right now is:
This should result in a functioning storybook / upload. We need to investigate how to stop ember from adding that request that fails in static mode in storybook, I think. |
@tmeasday regarding this:
As you can see below nope, there's no network request to the file in question. The image above is the result of running this and then the script below, more specifically Also regarding this:
This stems from this when the user/reader is following the tutorial, he/she is normally using storybook in development mode. And that's being injected into his/hers storybook. As per documentation here and here. Which means that when the reader goes through that section he/she will have a build based on that. And it will generate this issue. I just did a test to confirm something and i think i solved it. What i did was:
chromatic info Building your Storybook (this can take a minute depending on how many stories you have)
chromatic info Uploading your built Storybook...
uploading [====================] 988kb/s 100% 0.0s
chromatic info Verifying build (this may take a few minutes depending on your connection)
chromatic info Found 10 stories
chromatic info Started build 2 (3 components, 10 stories, 10 snapshots).
chromatic info Taking snapshots 1/10
chromatic info Taking snapshots 3/10
chromatic info Taking snapshots 9/10
chromatic info Build 2 has 6 changes.
chromatic info Pass --exit-zero-on-changes if you want this command to exit successfully in this case.
Alternatively, pass --auto-accept-changes if you want changed builds to pass on this branch.
Read more: https://www.chromatic.com/docs/test Why this worked was that per previous test a build was present that was not using the livereload server and it seems that the With this i think i need to make some adjustments to the documentation and move some things around and make some rewording so that the reader can get his/hers storybook deployed to chromatic correctly and do some tests to see if it all checks out. Do you mind keeping this open for a bit longer while i "battle test" (pardon the bad pun) this? |
Of course! |
@jonniebigodes I am going to assume this is solved, LMK if not. |
@tmeasday sorry for not closing this earlier. Yeah it was solved a few releases ago, still in 5.x.x . I completely forgot to close this. |
While working on the ember version of the intro to storybook tutorial, upon reaching the testing section the reader is prompted to install
storybook-chromatic
. During the install process a warn is issued with the following:I removed the
storybook-chromatic
package and installedchromatic
instead. All went well with the installation.Issuing the following in the console to run chromatic to setup the baseline stories:
I get the following error:
As a test i removed the chromatic package and added back
storybook-chromatic
and when i runnpx chromatic --app-code=my-token
i get the following error:I'm going to check and see if reverting back to version 3.5.5 works and update the documentation to use the specific version for now as this is addressed. Probably the addon might need some work aswell.
Feel free to provide feedback
The text was updated successfully, but these errors were encountered: