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

[Bug]: Storybook 8.1.4 updated stories index to v5, which is unsupported #472

Closed
vxsx opened this issue May 28, 2024 · 0 comments · Fixed by #475
Closed

[Bug]: Storybook 8.1.4 updated stories index to v5, which is unsupported #472

vxsx opened this issue May 28, 2024 · 0 comments · Fixed by #475
Labels
bug Something isn't working needs triage

Comments

@vxsx
Copy link

vxsx commented May 28, 2024

Describe the bug

This change storybookjs/storybook#27358 updated the index version, which is not supported by test-runner yet: https://github.com/storybookjs/test-runner/blob/next/src/playwright/transformPlaywrightJson.ts#L127

To Reproduce

Run any playwright test

System

Storybook Environment Info:

  System:
    OS: macOS 14.3.1
    CPU: (12) arm64 Apple M2 Pro
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 20.13.1 - ~/.nvm/versions/node/v20.13.1/bin/node
    Yarn: 1.22.22 - ~/.nvm/versions/node/v20.13.1/bin/yarn
    npm: 10.8.0 - ~/.nvm/versions/node/v20.13.1/bin/npm <----- active
    pnpm: 9.1.2 - ~/.nvm/versions/node/v20.13.1/bin/pnpm
  Browsers:
    Chrome: 125.0.6422.78
    Safari: 17.3.1
  npmPackages:
    @storybook/addon-a11y: ^8.1.3 => 8.1.3
    @storybook/addon-essentials: ^8.1.3 => 8.1.3
    @storybook/react: ^8.1.3 => 8.1.3
    @storybook/react-vite: ^8.1.3 => 8.1.3
    @storybook/test: ^8.1.3 => 8.1.3
    @storybook/test-runner: ^0.18.1 => 0.18.1
    eslint-plugin-storybook: ^0.8.0 => 0.8.0
    storybook: ^8.1.4 => 8.1.4
    storybook-dark-mode: ^4.0.1 => 4.0.1

but I believe largely irrelevant

Additional context

test-storybook --url=http://storybook-static:3003/ --no-cache --verbose
[test-storybook] Detected a remote Storybook URL, running in index json mode. To disable this, run the command again with --no-index-json
[test-storybook] Unsupported version 5 
Error: Unsupported version 5
    at transformPlaywrightJson (/app/node_modules/@storybook/test-runner/dist/test-storybook.js:17728:11)
    at getIndexTempDir (/app/node_modules/@storybook/test-runner/dist/test-storybook.js:24708:27)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async main (/app/node_modules/@storybook/test-runner/dist/test-storybook.js:24816:19)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs triage
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant