Skip to content

Fix ERR_PACKAGE_PATH_NOT_EXPORTED on Playwright 1.60.0#42

Merged
DenysKuchma merged 1 commit into
mainfrom
fix/playwright-core-import
May 30, 2026
Merged

Fix ERR_PACKAGE_PATH_NOT_EXPORTED on Playwright 1.60.0#42
DenysKuchma merged 1 commit into
mainfrom
fix/playwright-core-import

Conversation

@DenysKuchma
Copy link
Copy Markdown
Collaborator

Summary

  • playwright-core/lib/utils is no longer exported in Playwright 1.60.0's
    package.json "exports" map, breaking explorbot init with
    ERR_PACKAGE_PATH_NOT_EXPORTED
  • Replaced the static ESM import with a lazy require() via
    createRequire inside getAsLocator(), so the module is only loaded when
    renderCall() is actually called (Playwright code generation), not at
    startup

#40

@DenysKuchma DenysKuchma requested a review from DavertMik May 29, 2026 11:58
@DenysKuchma DenysKuchma merged commit 84590f9 into main May 30, 2026
1 of 2 checks passed
@DenysKuchma DenysKuchma deleted the fix/playwright-core-import branch May 30, 2026 14:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant