Skip to content

Commit c92cf6f

Browse files
committed
fix(webkit): import channels via relative path in WebDriver backend
The @protocol/channels alias is not configured in playwright-core's tsconfig, causing TS2307 errors. Use the relative ../../channels path used throughout the server code instead.
1 parent b6d61e3 commit c92cf6f

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

packages/playwright-core/src/server/webkit/webdriver/wdBrowser.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ import type { SdkObject } from '../../instrumentation';
3333
import type { InitScript, Page } from '../../page';
3434
import type { Progress } from '../../progress';
3535
import type * as types from '../../types';
36-
import type * as channels from '@protocol/channels';
36+
import type * as channels from '../../channels';
3737

3838
const kLaunchScheme = 'webdriver+launch://';
3939

packages/playwright-core/src/server/webkit/webdriver/wdPage.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ import type * as frames from '../../frames';
3131
import type { InitScript, PageDelegate } from '../../page';
3232
import type { Progress } from '../../progress';
3333
import type * as types from '../../types';
34-
import type { PagePdfParams } from '@protocol/channels';
34+
import type { PagePdfParams } from '../../channels';
3535

3636
/**
3737
* PageDelegate backed by a classic W3C WebDriver session.

0 commit comments

Comments
 (0)