question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG] Doesn't work with mac10.13

See original GitHub issue

Context:

  • Playwright Version: 0.14.0-next.1587663620223
  • Operating System: Mac 10.13.6 (17G2208)
  • Node: 12.16.2

Code Snippet

const {chromium} = require('playwright');

(async () => {
  const browser = await chromium.launch();
  // ... 
})();

Describe the bug

When running the above simple example, I get this error:

Error: Unsupported platform for webkit: mac10.13
    at Object.assert (/Users/tim/code/example/node_modules/playwright-core/lib/helper.js:288:15)
    at Object.executablePath (/Users/tim/code/example/node_modules/playwright-core/lib/server/browserFetcher.js:130:14)
    at downloadOptionsFromENV (/Users/tim/code/example/node_modules/playwright-core/download-browser.js:45:36)
    at Object.<anonymous> (/Users/tim/code/example/node_modules/playwright/index.js:25:37)
    at Module._compile (internal/modules/cjs/loader.js:1156:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1176:10)
    at Module.load (internal/modules/cjs/loader.js:1000:32)
    at Function.Module._load (internal/modules/cjs/loader.js:899:14)
    at Module.require (internal/modules/cjs/loader.js:1042:19)
    at require (internal/modules/cjs/helpers.js:77:18)

As in my understanding, https://github.com/microsoft/playwright/pull/1549 should have fixed this, I guess it’s unintended behavior, therefore a bug.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:13 (6 by maintainers)

github_iconTop GitHub Comments

4reactions
Pezhvakcommented, Jan 9, 2022

If anyone else ever comes across this, simply run:

PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=true npm i -D playwright

The problem is that webkit doesn’t support 10.13 anymore. skipping browser installation will fix the issue, however since i had ran the install command previously firefox and chromium was installed and failed on webkit, so skipping the browser installation second time worked since webkit won’t get downloaded.

3reactions
arjunattamcommented, Sep 24, 2020

@Pezhvak, v1.4.2 was just released with the fix

Read more comments on GitHub >

github_iconTop Results From Across the Web

ERROR: Playwright does not support webkit on mac10.13
According to https://github.com/microsoft/playwright/issues/1941 You can still install playwright, but only Firefox and Chrome are supported ...
Read more >
845267 - Flaky failure on Mac10.13: http/tests/inspector ...
Issue 845267: Flaky failure on Mac10.13: http/tests/inspector-protocol/page/page-lifecycleEvents.js ... Now that synchronization issues have been fixed on MacOS,
Read more >
macOS 10.13, 10.14 and 10.15: Video functionality not enabled
This issue has been raised by DisplayLink to Apple with bug ID 33133825. Once the user approval has been granted, following installations of...
Read more >
Xcode want install on high Sierra 10.13.6 - Apple Developer
I'm trying to install Xcode on High Sierra 10.13.6 and I'm having problems doing so. I'm getting error that I need to upgrade...
Read more >
Kernel Panic on Mac: 10 Pro Tips to Fix Mac Keeps Restarting ...
You are in the middle of some serious work, and suddenly an error ... And when the Mac fails to handle the issue,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found