You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In my project, I have playwright and rebrowser-playwright as dependencies. I have both dependencies, because I use one or the other as needed. But when both have the same version number: rebrowser-playwright doesn't work.
rebrowser-playwright has playwright-core dependency which is replaced by npm:rebrowser-playwright-core@~1.49.1. Due to a bug in npm, the playwright-core dependency overrides rebrowser-playwright-core.
{type: 'mainWorldExecution',rating: 1,note: `You've called <code>document.getElementsByClassName()</code> in the main world. Use <a href="https://github.com/rebrowser/rebrowser-patches" target="_blank">rebrowser-patches</a> to run your scripts in an isolated world.`,debug: {args: ['div']},msSinceLoad: 29.3}
To get around this bug, rebrowser-playwright would have to use rebrowser-playwright-core directly as a dependency (and change the imports).
The text was updated successfully, but these errors were encountered:
In my project, I have
playwright
andrebrowser-playwright
as dependencies. I have both dependencies, because I use one or the other as needed. But when both have the same version number:rebrowser-playwright
doesn't work.rebrowser-playwright
hasplaywright-core
dependency which is replaced bynpm:rebrowser-playwright-core@~1.49.1
. Due to a bug in npm, theplaywright-core
dependency overridesrebrowser-playwright-core
.package.json
index.js
npm install
node index.js
To get around this bug,
rebrowser-playwright
would have to userebrowser-playwright-core
directly as a dependency (and change the imports).The text was updated successfully, but these errors were encountered: