Bug Report
Description
When using browserstack-node-sdk@1.56.3 with @playwright/test@1.60.0, the SDK crashes immediately on startup with the following error:
Error: playwright/lib/common/configLoader.js doesn't exist.
at exports.<computed> (.../browserstack-node-sdk/src/helpers/helper.js:1:93467)
at getUserPlaywrightConfig (.../browserstack-node-sdk/src/bin/playwright/command.js:2:7023)
at Object.zaORQ (.../browserstack-node-sdk/src/bin/playwright/command.js:2:10318)
at .../browserstack-node-sdk/src/bin/playwright/command.js:2:15330
at process.processTicksAndRejections (node:internal/process/task_queues:103:5)
The file playwright/lib/common/configLoader.js was removed/moved in Playwright 1.60.0 as part of internal restructuring. The SDK hardcodes this path in src/helpers/helper.js.
Steps to Reproduce
- Install
@playwright/test@1.60.0 and browserstack-node-sdk@1.56.3
- Configure
browserstack.yml with framework: playwright
- Run:
npx browserstack-node-sdk playwright test
- SDK crashes immediately before any test runs
Expected Behavior
SDK resolves the Playwright config successfully and tests run on BrowserStack.
Actual Behavior
SDK crashes on startup trying to access a non-existent internal Playwright path.
Versions
browserstack-node-sdk: 1.56.3
@playwright/test: 1.60.0
- Node.js: 22.x
- OS: macOS
Workaround
Downgrading to @playwright/test@1.59.1 resolves the issue.
Bug Report
Description
When using
browserstack-node-sdk@1.56.3with@playwright/test@1.60.0, the SDK crashes immediately on startup with the following error:The file
playwright/lib/common/configLoader.jswas removed/moved in Playwright 1.60.0 as part of internal restructuring. The SDK hardcodes this path insrc/helpers/helper.js.Steps to Reproduce
@playwright/test@1.60.0andbrowserstack-node-sdk@1.56.3browserstack.ymlwithframework: playwrightnpx browserstack-node-sdk playwright testExpected Behavior
SDK resolves the Playwright config successfully and tests run on BrowserStack.
Actual Behavior
SDK crashes on startup trying to access a non-existent internal Playwright path.
Versions
browserstack-node-sdk: 1.56.3@playwright/test: 1.60.0Workaround
Downgrading to
@playwright/test@1.59.1resolves the issue.