Apparently, when Playwright releases an update, it stops working when try to use it:
[ Server ] [Scraping] Using Playwright[ Server ] [Scraping] Starting Playwright for URL[ Server!] [Scraping] Playwright failed. browserType.launch: Executable doesn't exist at /home/rootall/.cache/ms-playwright/chromium_headless_shell-1200/chrome-headless-shell-linux64/chrome-headless-shell[ Server!] ╔═════════════════════════════════════════════════════════════════════════╗[ Server!] ║ Looks like Playwright Test or Playwright was just installed or updated. ║[ Server!] ║ Please run the following command to download new browsers: ║[ Server!] ║ ║[ Server!] ║ npx playwright install ║[ Server!] ║ ║[ Server!] ║ <3 Playwright Team ║[ Server!] ╚═════════════════════════════════════════════════════════════════════════╝
[ Server ] [Scraping] Using Playwright[ Server ] [Scraping] Starting Playwright for URL[ Server!] [Scraping] Playwright failed. browserType.launch: Executable doesn't exist at /home/rootall/.cache/ms-playwright/chromium_headless_shell-1200/chrome-headless-shell-linux64/chrome-headless-shell[ Server!] ╔═════════════════════════════════════════════════════════════════════════╗[ Server!] ║ Looks like Playwright Test or Playwright was just installed or updated. ║[ Server!] ║ Please run the following command to download new browsers: ║[ Server!] ║ ║[ Server!] ║ npx playwright install ║[ Server!] ║ ║[ Server!] ║ <3 Playwright Team ║[ Server!] ╚═════════════════════════════════════════════════════════════════════════╝
This isn't the first time it's happened, and it affects production too.
Locally, I just run
npx playwright install
npx playwright install
, but in prod?
Do I have to build and deploy again every time when the error shows?
Do I also need to actively monitor for new versions so that they don't come out and blow up the end user?
Recent Announcements
Continue the conversation
Join the Discord to ask follow-up questions and connect with the community
W
Wasp
Rails-like framework for React, Node.js and Prisma. Build your app in a day and deploy it with a single CLI command.