-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
feat(storybook): bump to v8 #12957
feat(storybook): bump to v8 #12957
Conversation
❌ Deploy Preview for ethereumorg failed. Why did it fail? →
|
@TylerAPfledderer weird error I see on the logs about |
@pettinarip Thanks! I have a couple of PRs that had unexpected build errors. Looks like a new error here. |
@pettinarip @corwintines leaving a note here: Need to check the Visual Testing Addon to make sure it's going to function properly in other user locals, because of the generated View the docs for Visual Testing Addon. |
@TylerAPfledderer tested locally and it didn't work with the set |
.gitignore
Outdated
|
||
# Storybook | ||
build-storybook.log |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We might also need to ignore /storybook-static
since it is generated when you run the tests locally.
@pettinarip Ok! Thank you for checking. I'll try to set it again in my local and see if anything changes, and clarify the errors I see. To clarify, I think this visual testing addon is only useful for those who have access to the project in Chromatic in approving changes, but still might be helpful in its convenience for review. |
Got it, good to know. Ok, I've updated the branch with |
@pettinarip Updating the Chromatic CLI v11.3.2
https://www.chromatic.com/docs/cli
Skipping update check
Authenticating with Chromatic
→ Connecting to https://index.chromatic.com
→ No Access
✖ Failed to authenticate
Error communicating with the Chromatic API. Check if your Chromatic client is up-to-date.
Service status updates are provided at https://status.chromatic.com
→ FORBIDDEN: No Access
If you need help, please chat with us at https://www.chromatic.com/docs/cli for the fastest response.
You can also email the team at support@chromatic.com if chat is not an option.
Please provide us with the above CLI output and the following info:
{
"timestamp": "2024-05-21T13:35:13.244Z",
"sessionId": "28c5271b-37af-488b-9a6e-e98cc885786a",
"nodePlatform": "linux",
"nodeVersion": "21.7.3",
"packageName": "chromatic",
"packageVersion": "11.3.2",
"flags": {
"interactive": false
},
"extraOptions": {
"projectId": "Project:63b7ea99632763723c7f4d6b",
"autoAcceptChanges": false,
"exitOnceUploaded": false,
"exitZeroOnChanges": true,
"forceRebuild": true,
"fromCI": false,
"interactive": false,
"isLocalBuild": true,
"skip": false,
"skipUpdateCheck": true,
"experimental_abortSignal": {}
},
"configuration": {
"configFile": "chromatic.config.json",
"projectId": "Project:63b7ea99632763723c7f4d6b",
"zip": true,
"buildScriptName": "build-storybook:chromatic"
},
"isLocalBuild": true,
"buildScript": "storybook build --test",
"exitCode": 202,
"exitCodeKey": "GRAPHQL_ERROR",
"errorType": "GraphQLError",
"errorMessage": "✖ Failed to authenticate"
} And the config: {
"projectId": "Project:63b7ea99632763723c7f4d6b",
"zip": true,
"buildScriptName": "build-storybook:chromatic"
} Am I missing a permission? |
@TylerAPfledderer Yeah, I think only people who have permissions to the project will be able to run those tests locally. I had to authorize it before I could run it. |
@TylerAPfledderer pushed a commit to regenerate the yarn.lock file to see if that fix the issue with |
Hey @TylerAPfledderer can't remember what we were going to do here. There is a type issue breaking the build. I remember that for some reason, it seems that SB is using a different TS settings than the project, right? |
Storybook does not work with a different config from the one in the project. There is the eslint plugin for storybook, but that only covers rules for the API usage, not linting or type errors coming from the component being used. This is new, and it is expected. The I'll update that story file to pass a |
Annnd now we are back to the issue with sharp! 😅 |
Ok, downgrading sharp to I'll do some testing to make sure nothing breaks, and then I'd call this done. LMK if you see any blockers or issues with this version. |
be35a42
to
de049df
Compare
@pettinarip welp.... bumping SB did nothing, even though the build worked in my local! Other possible solutions point to Netlify being the culprit: |
Testing the first suggestion, I tested it and worked on a different branch. Lets see |
Ok, this one is working (atm the build is going well) with latest version. However, I don't love it because I see these warnings now:
it seems that the problem comes from So...I think we can live with it, not a big deal since it looks like everything is working fine + we have now LMK if you think there is something else we should pay attention. |
@pettinarip Ok! I don't have anything else to add here. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok! lets goo
Description
Now that the project uses NextJS v14, this PR bumps Storybook to v8.
build-storybook:chromatic
specifically for Chromatic. This runsstorybook build
in test mode to cut down the build time of storybook by stripping down the build to only what's needed for Chromaticbuild-storybook.log
to.gitignore
as local builds with the Visual Test Addon will generate this log, which should not be committed.@storybook/testing-library
with@storybook/test
per compatibility. (This change currently exists in feat: setup Storybook Interaction Testing #12444)