Skip to content
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

Trailing slash in URL causes no preview on screenshots without any error message #934

Open
andrzej-woof opened this issue Oct 9, 2024 · 0 comments

Comments

@andrzej-woof
Copy link

Took me a while to figure this out but apparently (at least on my setup with storybook 8) passing storybook URL with trailing slash for example:

storycap --serverCmd "npx http-server ./storybook-static --port 6006" http://127.0.0.1:6006/ --outDir ./screenshots

make storycap navigate to http://127.0.0.1:6006//iframe.html?... (note the double slash) and then it fails setting stories with uncaught SecurityError as follows

CleanShot 2024-10-09 at 06 40 19

which BTW wasn't forwarded to console even with --forwardConsoleLogs --verbose flags and I could only observe it when I've disabled headless mode.

Changing from http://127.0.0.1:6006/ to http://127.0.0.1:6006 fixes the problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant