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]: Executable doesn't exist #531

Closed
ianzone opened this issue Dec 31, 2024 · 1 comment
Closed

[Bug]: Executable doesn't exist #531

ianzone opened this issue Dec 31, 2024 · 1 comment
Labels
bug Something isn't working needs triage

Comments

@ianzone
Copy link

ianzone commented Dec 31, 2024

Describe the bug

> react-storybook-template@0.0.0 test /home/ian/templates/react-storybook
> test-storybook

(node:211630) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
Test Suites: 0 of 4 total
Tests:       0 total
Snapshots:   0 total
Time:        0.24 s
Ran all test suites.
Error: Executable doesn't exist at /home/ian/.cache/ms-playwright/chromium_headless_shell-1148/chrome-linux/headless_shell
╔═════════════════════════════════════════════════════════════════════════╗
║ Looks like Playwright Test or Playwright was just installed or updated. ║
║ Please run the following command to download new browsers:              ║
║                                                                         ║
║     pnpm exec playwright install                                        ║
║                                                                         ║
║ <3 Playwright Team                                                      ║
╚═════════════════════════════════════════════════════════════════════════╝ Failed to launch browser.
    at executablePathOrDie (/home/ian/templates/react-storybook/node_modules/.pnpm/playwright-core@1.49.1/node_modules/playwright-core/lib/server/registry/index.js:394:15)
    at Object.executablePathOrDie (/home/ian/templates/react-storybook/node_modules/.pnpm/playwright-core@1.49.1/node_modules/playwright-core/lib/server/registry/index.js:424:43)
    at Chromium._launchProcess (/home/ian/templates/react-storybook/node_modules/.pnpm/playwright-core@1.49.1/node_modules/playwright-core/lib/server/browserType.js:203:39)
    at async Chromium._innerLaunch (/home/ian/templates/react-storybook/node_modules/.pnpm/playwright-core@1.49.1/node_modules/playwright-core/lib/server/browserType.js:139:9)
    at async Chromium._innerLaunchWithRetries (/home/ian/templates/react-storybook/node_modules/.pnpm/playwright-core@1.49.1/node_modules/playwright-core/lib/server/browserType.js:120:14)
    at async ProgressController.run (/home/ian/templates/react-storybook/node_modules/.pnpm/playwright-core@1.49.1/node_modules/playwright-core/lib/server/progress.js:79:22)
    at async Chromium.launch (/home/ian/templates/react-storybook/node_modules/.pnpm/playwright-core@1.49.1/node_modules/playwright-core/lib/server/browserType.js:79:21)
    at async BrowserServerLauncherImpl.launchServer (/home/ian/templates/react-storybook/node_modules/.pnpm/playwright-core@1.49.1/node_modules/playwright-core/lib/browserServerImpl.js:48:21)
    at async BrowserType.launchServer (/home/ian/templates/react-storybook/node_modules/.pnpm/playwright-core@1.49.1/node_modules/playwright-core/lib/client/browserType.js:82:12)
    at async PlaywrightRunner.launchServer (/home/ian/templates/react-storybook/node_modules/.pnpm/jest-playwright-preset@4.0.0_jest-circus@29.7.0_jest-environment-node@29.7.0_jest-runner@29.7_3w53sh4gg6ep6p6kymmqcxba5m/node_modules/jest-playwright-preset/lib/PlaywrightRunner.js:69:44)
 ELIFECYCLE  Test failed. See above for more details.

To Reproduce

  1. clone https://github.com/ianzone/react-storybook
  2. pnpm i
  3. pnpm run dev
  4. pnpm run test

System

Storybook Environment Info:

  System:
    OS: Linux 5.15 Ubuntu 24.04.1 LTS 24.04.1 LTS (Noble Numbat)
    CPU: (20) x64 13th Gen Intel(R) Core(TM) i7-13800H
    Shell: 5.9 - /home/linuxbrew/.linuxbrew/bin/zsh
  Binaries:
    Node: 22.12.0 - /home/linuxbrew/.linuxbrew/opt/node@22/bin/node
    npm: 10.9.0 - /home/linuxbrew/.linuxbrew/opt/node@22/bin/npm
    pnpm: 9.15.2 - /home/linuxbrew/.linuxbrew/bin/pnpm <----- active
  npmPackages:
    @storybook/addon-essentials: ^8.4.7 => 8.4.7
    @storybook/addon-interactions: ^8.4.7 => 8.4.7
    @storybook/addon-links: ^8.4.7 => 8.4.7
    @storybook/blocks: ^8.4.7 => 8.4.7
    @storybook/react: ^8.4.7 => 8.4.7
    @storybook/react-vite: ^8.4.7 => 8.4.7
    @storybook/test: ^8.4.7 => 8.4.7
    @storybook/test-runner: ^0.21.0 => 0.21.0
    storybook: ^8.4.7 => 8.4.7

Additional context

No response

@ianzone ianzone added bug Something isn't working needs triage labels Dec 31, 2024
@ianzone ianzone changed the title [Bug]: [Bug]: Executable doesn't exist Dec 31, 2024
@ianzone
Copy link
Author

ianzone commented Dec 31, 2024

it turned out that the headless browsers were not installed, run pnpx playwright install --with-deps to fix this issue.

@ianzone ianzone closed this as completed Dec 31, 2024
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

No branches or pull requests

1 participant