-
Notifications
You must be signed in to change notification settings - Fork 45
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
When upgrading to Storybook 8 I get "Error: Storybook object not found on the window. Open Storybook and check the console for errors." #911
Comments
Also running into this, but it seems like it's flaky for me. Sometimes it passes, sometimes it throws this error. |
Experienced this too. It sometimes works? |
Just ran into this issue while upgrading to Storybook 8.
|
We are running into the same issue.
|
I reported it through BrowserStack support center, as suggested here: #918 (comment) |
Hello,
|
Hey, Do try out the new SDK, and provide us feedback. Thanks. |
I have the same issue with As a workaround, the following settings seem to do the trick:
|
Hey, any progress with this issue? We have a blocker in our GitLab CI/CD pipeline bc of this. |
Hi @ppulwey We are looking into it. Allow us sometime to debug and comeback on it. |
Hello everyone, If you could kindly provide us with the reproducible steps of the issue you're experiencing, it would greatly assist us in resolving it efficiently. Additionally, please reach out to BrowserStack support with the reproducible steps to recreate the issue, preferably using storybook you are using. This will enable us to better understand and address the problem. We're more than happy to assist you further once we have all the necessary information. In parallel we are trying to reproduce it on our end. Thank you for your cooperation. |
Hello @rishigupta1599, you might have missed that the OP already added a link to a test repo.
Tried it locally with node 18 and it works. On our side this only occurs in GitLab. |
This issue is stale because it has been open for more than 14 days with no activity. Remove stale label or comment or this will be closed in 14 days. |
It's been 20 days and still no progress. Issue is stale now. It's still relevant. Do you need any further information about this issue. |
Hey @ppulwey, After testing on our end with the provided Storybook setup at rudeayelo/percy-storybook-8, we were unable to reproduce any issues with newer SDK version Here are the configurations we used: GitHub Action Config: name: Test Storybook
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
test_storybook:
runs-on: ubuntu-latest
container:
image: node:18.16.0-alpine3.17
options: --entrypoint ""
env:
PERCY_TOKEN: ${{ secrets.PERCY_TOKEN }}
PERCY_TARGET: storybook-static
PERCY_BROWSER_EXECUTABLE: /usr/bin/chromium-browser
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Install Chromium
run: |
apk update
apk add --no-cache chromium
- name: Verify Chromium installation
run: |
which chromium || which chromium-browser
- name: Install dependencies
run: npm install
- name: Build Storybook
run: npm run build-storybook
- name: Run visual tests
run: npm run visual GitLab Runner Config: visual_regression_test:
stage: test
image:
name: node:18.16.0-alpine3.17
entrypoint: [""]
variables:
PERCY_TOKEN: ${Percy_Token}
PERCY_TARGET: storybook-static
PERCY_BROWSER_EXECUTABLE: /usr/bin/chromium-browser
before_script:
- apk update && apk add --no-cache chromium
script:
- which chromium || which chromium-browser
- ls storybook-static
- npm install
- npm run visual The fact that the issue only occurs in your CI/CD pipeline and not locally suggests a potential resource issue with your CI agents. If it were an SDK issue, we would expect to encounter it locally as well. We recommend raising a support ticket with Browserstack to investigate further. Please initiate this so that we can collaborate and resolve the issue promptly. |
This issue is stale because it has been open for more than 14 days with no activity. Remove stale label or comment or this will be closed in 14 days. |
This issue was closed because it has been stalled for 28 days with no activity. |
The problem
When I try tu upgrade to the latest version of Storybook (
8.0.4
currently) and I trigger thepercy storybook
command, the process stops just after downloading Chromium.Environment
v20.5.1
@percy/cli
version:1.28.2
@percy/storybook
version:5.0.1
zsh
Details
If necessary, describe the problem you have been experiencing in more detail.
Debug logs
Code to reproduce issue
I grabbed the React starter template from Storybook, upgraded it and added Percy, same issue appears, here's the repo: https://github.com/rudeayelo/percy-storybook-8
The text was updated successfully, but these errors were encountered: