-
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
DOMException: Blocked a frame with origin "null" from accessing a cross-origin frame. #285
Comments
Hey @camtheperson! That warning is probably pretty irrelevant here. 🤔 Is that screenshot from the page fully loaded? When this is logged:
It means we weren't able to open that index file and pick off the stories from the window object: |
Howdy @Robdel12. Yes, the page is fully loaded. It may be worth noting that I'm accessing that page via file path, i.e. I noticed some similarities in this issue/comment: storybookjs/storybook#7215 (comment). The comment below mentions the need to run a web server, but I'm not exactly sure what to do from here. |
When the page is fully loaded, can you access that global var in the console? What does it print? https://docs.percy.io/docs/storybook#debugging-locally It's also possible the static folder path is different too. Percy loads that static output, starts a local server, opens the index file, and tries to grab the window var. From there, everything else is done in node. |
@Robdel12 I think I've made some progress. In our repo, we've abstracted Storybook as a dependency and it's configuration through a tool called pixeloven. Our tool uses the following command to build Storybook: So essentially, when I build storybook using However, when I build storybook using So I'm curious if there is a way to tell the |
Derp. Nevermind.
|
Sweet! Super happy that helped get you going in the right direction :D |
"@percy/storybook": "^3.3.1"
After building Storybook and running
percy-storybook --widths=320,1280 --debug
, I get the following error:From here, I open the storybook-static index file, and I'm seeing the following in the console:
Screenshot:
Any ideas?
The text was updated successfully, but these errors were encountered: