<p dir="auto">I cannot seem to get playwright 1.34.3 working with <code class="notranslate">yarn</code>, even on a fresh install.</p>
<p dir="auto">I am running into issues described in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1721494114" data-permission-text="Title is private" data-url="https://github.com/microsoft/playwright/issues/23228" data-hovercard-type="issue" data-hovercard-url="/microsoft/playwright/issues/23228/hovercard" href="https://github.com/microsoft/playwright/issues/23228">#23228</a>, but 1.34.3 did not solve them. It is exactly what <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/thekp/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/thekp">@thekp</a> describe in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1721494114" data-permission-text="Title is private" data-url="https://github.com/microsoft/playwright/issues/23228" data-hovercard-type="issue" data-hovercard-url="/microsoft/playwright/issues/23228/hovercard?comment_id=1562778476&amp;comment_type=issue_comment" href="https://github.com/microsoft/playwright/issues/23228#issuecomment-1562778476">#23228 (comment)</a>_</p>
<p dir="auto">I've created a fresh install and still get this issue:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="tvongaza ~/  $ mkdir playwright-test

tvongaza ~/  $ cd playwright-test 

tvongaza ~/playwright-test  $ yarn init
yarn init v1.22.19
question name (playwright-test): 
question version (1.0.0): 
question description: 
question entry point (index.js): 
question repository url: 
question author: 
question license (MIT): 
question private: 
success Saved package.json
✨  Done in 5.74s.

tvongaza ~/playwright-test  $ yarn add playwright
yarn add v1.22.19
info No lockfile found.
[1/4] 🔍  Resolving packages...
[2/4] 🚚  Fetching packages...
[3/4] 🔗  Linking dependencies...
[4/4] 🔨  Building fresh packages...
success Saved lockfile.
success Saved 2 new dependencies.
info Direct dependencies
└─ playwright@1.34.3
info All dependencies
├─ playwright-core@1.34.3
└─ playwright@1.34.3
✨  Done in 1.59s.

tvongaza ~/playwright-test  $ yarn create playwright 
yarn create v1.22.19
[1/4] 🔍  Resolving packages...
[2/4] 🚚  Fetching packages...
[3/4] 🔗  Linking dependencies...
[4/4] 🔨  Building fresh packages...
success Installed &quot;create-playwright@1.17.127&quot; with binaries:
      - create-playwright
[###########################################################################################################################################################] 282/282Getting started with writing end-to-end tests with Playwright:
Initializing project in '.'
✔ Do you want to use TypeScript or JavaScript? · TypeScript
✔ Where to put your end-to-end tests? · tests
✔ Add a GitHub Actions workflow? (y/N) · false
✔ Install Playwright browsers (can be done manually via 'yarn playwright install')? (Y/n) · true
Installing Playwright Test (yarn add --dev @playwright/test)…
yarn add v1.22.19
[1/4] 🔍  Resolving packages...
[2/4] 🚚  Fetching packages...
[3/4] 🔗  Linking dependencies...
[4/4] 🔨  Building fresh packages...
success Saved lockfile.
success Saved 3 new dependencies.
info Direct dependencies
└─ @playwright/test@1.34.3
info All dependencies
├─ @playwright/test@1.34.3
├─ @types/node@20.2.4
└─ fsevents@2.3.2
✨  Done in 1.25s.
Downloading browsers (yarn playwright install)…
yarn run v1.22.19
$ /Users/tvongaza/playwright-test/node_modules/.bin/playwright install
✨  Done in 0.46s.
Writing playwright.config.ts.
Writing tests/example.spec.ts.
Writing tests-examples/demo-todo-app.spec.ts.
Writing package.json.
✔ Success! Created a Playwright Test project at /Users/tvongaza/playwright-test

Inside that directory, you can run several commands:

  yarn playwright test
    Runs the end-to-end tests.

  yarn playwright test --ui
    Starts the interactive UI mode.

  yarn playwright test --project=chromium
    Runs the tests only on Desktop Chrome.

  yarn playwright test example
    Runs the tests in a specific file.

  yarn playwright test --debug
    Runs the tests in debug mode.

  yarn playwright codegen
    Auto generate tests with Codegen.

We suggest that you begin by typing:

    yarn playwright test

And check out the following files:
  - ./tests/example.spec.ts - Example end-to-end test
  - ./tests-examples/demo-todo-app.spec.ts - Demo Todo App end-to-end tests
  - ./playwright.config.ts - Playwright Test configuration

Visit https://playwright.dev/docs/intro for more information. ✨

Happy hacking! 🎭
✨  Done in 7.52s.


tvongaza ~/playwright-test  $ yarn playwright test
yarn run v1.22.19
$ /Users/tvongaza/playwright-test/node_modules/.bin/playwright test
Please install @playwright/test package to use Playwright Test.
  npm install -D @playwright/test
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

tvongaza ~/playwright-test  $ yarn add -D  @playwright/test
yarn add v1.22.19
[1/4] 🔍  Resolving packages...
[2/4] 🚚  Fetching packages...
[3/4] 🔗  Linking dependencies...
[4/4] 🔨  Building fresh packages...
success Saved 1 new dependency.
info Direct dependencies
└─ @playwright/test@1.34.3
info All dependencies
└─ @playwright/test@1.34.3
✨  Done in 0.61s.

tvongaza ~/playwright-test  $ yarn playwright test         
yarn run v1.22.19
$ /Users/tvongaza/playwright-test/node_modules/.bin/playwright test
Please install @playwright/test package to use Playwright Test.
  npm install -D @playwright/test
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

tvongaza ~/playwright-test  $ node -v
v19.8.1

tvongaza ~/playwright-test  $ yarn -v
1.22.19

tvongaza ~/playwright-test  $ yarn list --pattern playwright 
yarn list v1.22.19
├─ @playwright/test@1.34.3
├─ playwright-core@1.34.3
└─ playwright@1.34.3
✨  Done in 0.04s."><pre class="notranslate"><code class="notranslate">tvongaza ~/  $ mkdir playwright-test

tvongaza ~/  $ cd playwright-test 

tvongaza ~/playwright-test  $ yarn init
yarn init v1.22.19
question name (playwright-test): 
question version (1.0.0): 
question description: 
question entry point (index.js): 
question repository url: 
question author: 
question license (MIT): 
question private: 
success Saved package.json
✨  Done in 5.74s.

tvongaza ~/playwright-test  $ yarn add playwright
yarn add v1.22.19
info No lockfile found.
[1/4] 🔍  Resolving packages...
[2/4] 🚚  Fetching packages...
[3/4] 🔗  Linking dependencies...
[4/4] 🔨  Building fresh packages...
success Saved lockfile.
success Saved 2 new dependencies.
info Direct dependencies
└─ playwright@1.34.3
info All dependencies
├─ playwright-core@1.34.3
└─ playwright@1.34.3
✨  Done in 1.59s.

tvongaza ~/playwright-test  $ yarn create playwright 
yarn create v1.22.19
[1/4] 🔍  Resolving packages...
[2/4] 🚚  Fetching packages...
[3/4] 🔗  Linking dependencies...
[4/4] 🔨  Building fresh packages...
success Installed "create-playwright@1.17.127" with binaries:
      - create-playwright
[###########################################################################################################################################################] 282/282Getting started with writing end-to-end tests with Playwright:
Initializing project in '.'
✔ Do you want to use TypeScript or JavaScript? · TypeScript
✔ Where to put your end-to-end tests? · tests
✔ Add a GitHub Actions workflow? (y/N) · false
✔ Install Playwright browsers (can be done manually via 'yarn playwright install')? (Y/n) · true
Installing Playwright Test (yarn add --dev @playwright/test)…
yarn add v1.22.19
[1/4] 🔍  Resolving packages...
[2/4] 🚚  Fetching packages...
[3/4] 🔗  Linking dependencies...
[4/4] 🔨  Building fresh packages...
success Saved lockfile.
success Saved 3 new dependencies.
info Direct dependencies
└─ @playwright/test@1.34.3
info All dependencies
├─ @playwright/test@1.34.3
├─ @types/node@20.2.4
└─ fsevents@2.3.2
✨  Done in 1.25s.
Downloading browsers (yarn playwright install)…
yarn run v1.22.19
$ /Users/tvongaza/playwright-test/node_modules/.bin/playwright install
✨  Done in 0.46s.
Writing playwright.config.ts.
Writing tests/example.spec.ts.
Writing tests-examples/demo-todo-app.spec.ts.
Writing package.json.
✔ Success! Created a Playwright Test project at /Users/tvongaza/playwright-test

Inside that directory, you can run several commands:

  yarn playwright test
    Runs the end-to-end tests.

  yarn playwright test --ui
    Starts the interactive UI mode.

  yarn playwright test --project=chromium
    Runs the tests only on Desktop Chrome.

  yarn playwright test example
    Runs the tests in a specific file.

  yarn playwright test --debug
    Runs the tests in debug mode.

  yarn playwright codegen
    Auto generate tests with Codegen.

We suggest that you begin by typing:

    yarn playwright test

And check out the following files:
  - ./tests/example.spec.ts - Example end-to-end test
  - ./tests-examples/demo-todo-app.spec.ts - Demo Todo App end-to-end tests
  - ./playwright.config.ts - Playwright Test configuration

Visit https://playwright.dev/docs/intro for more information. ✨

Happy hacking! 🎭
✨  Done in 7.52s.


tvongaza ~/playwright-test  $ yarn playwright test
yarn run v1.22.19
$ /Users/tvongaza/playwright-test/node_modules/.bin/playwright test
Please install @playwright/test package to use Playwright Test.
  npm install -D @playwright/test
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

tvongaza ~/playwright-test  $ yarn add -D  @playwright/test
yarn add v1.22.19
[1/4] 🔍  Resolving packages...
[2/4] 🚚  Fetching packages...
[3/4] 🔗  Linking dependencies...
[4/4] 🔨  Building fresh packages...
success Saved 1 new dependency.
info Direct dependencies
└─ @playwright/test@1.34.3
info All dependencies
└─ @playwright/test@1.34.3
✨  Done in 0.61s.

tvongaza ~/playwright-test  $ yarn playwright test         
yarn run v1.22.19
$ /Users/tvongaza/playwright-test/node_modules/.bin/playwright test
Please install @playwright/test package to use Playwright Test.
  npm install -D @playwright/test
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

tvongaza ~/playwright-test  $ node -v
v19.8.1

tvongaza ~/playwright-test  $ yarn -v
1.22.19

tvongaza ~/playwright-test  $ yarn list --pattern playwright 
yarn list v1.22.19
├─ @playwright/test@1.34.3
├─ playwright-core@1.34.3
└─ playwright@1.34.3
✨  Done in 0.04s.
</code></pre></div>
<h3 dir="auto">System info</h3>
<ul dir="auto">
<li>Playwright Version: [1.34.3]</li>
<li>Operating System: [MacOS Ventura - Version 13.4]</li>
<li>Browser: [All, Chromium, Firefox, WebKit]</li>
<li>Other info:</li>
</ul>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ node -v
v19.4.0

$ yarn -v
1.22.19

$ yarn list --pattern @playwright/test
yarn list v1.22.19
└─ @playwright/test@1.34.3"><pre class="notranslate"><code class="notranslate">$ node -v
v19.4.0

$ yarn -v
1.22.19

$ yarn list --pattern @playwright/test
yarn list v1.22.19
└─ @playwright/test@1.34.3
</code></pre></div>
<h3 dir="auto">Additional notes:</h3>
<p dir="auto">I get this problem when I created a new playwright project with <code class="notranslate">yarn create playwright</code></p>