Skip to content

browserstack-node-sdk fails with Playwright 1.61.0 due to missing internal module playwright/lib/common/configLoader.js #85

Description

@rakhee-puria

Hi,

### Environment
BrowserStack Node SDK: 1.57.2
Playwright: @playwright/test 1.61.0
Node.js: (20.x)
OS: macOS & Linux
Execution mode: browserstack-node-sdk playwright test
Integration type: BrowserStack Playwright SDK with browserstack.yml

### Description
When running Playwright tests using browserstack-node-sdk@1.57.2 with Playwright 1.61.0, execution fails during SDK initialization with an internal module resolution error.

The SDK attempts to load an internal Playwright file:

playwright/lib/common/configLoader.js

However, this file no longer exists in Playwright 1.61.0, resulting in a runtime failure.

### Error Message
Error: playwright/lib/common/configLoader.js doesn't exist.
at exports. (.../browserstack-node-sdk/src/helpers/helper.js)
at getUserPlaywrightConfig (.../browserstack-node-sdk/src/bin/playwright/command.js)
at processTicksAndRejections (node:internal/process/task_queues:95:5)

### Steps to Reproduce
Install dependencies:
npm install -D @playwright/test@1.61.0
npm install -D browserstack-node-sdk@1.57.2
Run tests using BrowserStack SDK:
npx browserstack-node-sdk playwright test
Execution fails during SDK initialization.
Expected Behavior
SDK should correctly initialize Playwright configuration
No dependency on removed internal Playwright modules
Tests should execute on BrowserStack infrastructure successfully
Actual Behavior
SDK fails during initialization

Throws error due to missing internal Playwright module:
playwright/lib/common/configLoader.js

### Impact
Blocks execution of Playwright tests on BrowserStack using SDK
Prevents usage of browserstack.yml-based configuration
Forces downgrade of Playwright or abandonment of SDK

### Suspected Root Cause
browserstack-node-sdk@1.57.2 depends on internal Playwright APIs
Playwright 1.61.0 removed/changed internal structure (lib/common/configLoader.js)
SDK is not updated for Playwright 1.61.0 compatibility

### Request to BrowserStack.
Please Update browserstack-node-sdk to support Playwright 1.61.0
Remove dependency on internal Playwright file paths
Provide compatibility matrix for supported Playwright versions

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions