# Problem with Playwright at build time

**URL:** <https://answers.netlify.com/t/problem-with-playwright-at-build-time/121415>\
**Category:** Support\
**Tags:** building\
**Created:** [July 2, 2024, 11:21am UTC](https://answers.netlify.com/t/problem-with-playwright-at-build-time/121415 "2024-07-02T11:21:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![hlassiege](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/hlassiege/32/62252_2.png) [@hlassiege](https://answers.netlify.com/u/hlassiege)\
**Post date:** [July 2, 2024, 11:21am UTC](https://answers.netlify.com/t/problem-with-playwright-at-build-time/121415/1 "2024-07-02T11:21:24Z")

</div>

PLEASE help us help you by writing a good post!

- netlify site name. Example: `benevolent-crostata-59db32.netlify.app`

I have a nuxt application that I build with npm run generate

This application uses mermaidjs, that requires playwright to render pages.

I tried to install playwright in the preinstall step :

```
    "preinstall": "npx playwright install",

```

However, I have errors when doing that

```
11:51:26 AM: [error] [unhandledRejection] browserType.launch: Executable doesn't exist at 
/opt/buildhome/.cache/ms-playwright/chromium-1117/chrome-linux/chrome

```

Even if the chromium executable was downloaded in the Initializing step

```auto
11:50:39 AM: Downloading Chromium 127.0.6533.17 (playwright build v1124) from https://playwright.azureedge.net/builds/chromium/1124/chromium-linux.zip
11:50:39 AM: | | 0% of 161.3 MiB
11:50:39 AM: |■■■■■■■■ | 10% of 161.3 MiB
11:50:39 AM: |■■■■■■■■■■■■■■■■ | 20% of 161.3 MiB
11:50:39 AM: |■■■■■■■■■■■■■■■■■■■■■■■■ | 30% of 161.3 MiB
11:50:39 AM: |■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ | 40% of 161.3 MiB
11:50:40 AM: |■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ | 50% of 161.3 MiB
11:50:40 AM: |■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ | 60% of 161.3 MiB
11:50:40 AM: |■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ | 70% of 161.3 MiB
11:50:40 AM: |■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ | 80% of 161.3 MiB
11:50:40 AM: |■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ | 90% of 161.3 MiB
11:50:40 AM: |■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■| 100% of 161.3 MiB
11:50:43 AM: Chromium 127.0.6533.17 (playwright build v1124) downloaded to /opt/buildhome/.cache/ms-playwright/chromium-1124

```

Do you know how to solve this problem ?

---

<div class="post-metadata">

**Author:** ![hrishikesh](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/hrishikesh/32/74607_2.png) [@hrishikesh](https://answers.netlify.com/u/hrishikesh)\
**Post date:** [July 4, 2024, 2:47pm UTC](https://answers.netlify.com/t/problem-with-playwright-at-build-time/121415/2 "2024-07-04T14:47:08Z")

</div>

This was just recently discussed: [Installing Playwright dependencies issue (netlify.com)](https://answers.netlify.com/t/120303/)

---

<div class="post-metadata">

**Author:** ![hlassiege](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/hlassiege/32/62252_2.png) [@hlassiege](https://answers.netlify.com/u/hlassiege)\
**Post date:** [July 27, 2024, 2:30pm UTC](https://answers.netlify.com/t/problem-with-playwright-at-build-time/121415/3 "2024-07-27T14:30:05Z")

</div>

The other discussion is not exactly related. (I don’t use playwright for testing purpose, but to generate the static files)

I was able to solve my problem by adding this dependency to the devDependencies :

```
    "@playwright/test": "^1.45.1",

```
