Closed remcohaszing closed 3 months ago
playwright-core is an implementation detail of Playwright, why are you using playwright-core and not playwright?
We need more information to act on this report. As long as we can't repro it, it is unlikely with can make progress with it. Allow me to close it, but please file a new one and link to this issue when you get back to it!
Allow me to close it, but please file a new one and link to this issue when you get back to it!
Hi @pavelfeldman. Why was this issue closed so quickly? This feels pretty hostile. This issue was closed within 2 weekdays after opening. This is during a time that’s really busy for me personally. I understand you can’t possibly know this, but 2 days is really short. Asking to report yet another duplicate issue instead of commenting, seems counter productive to both you, the person triaging, and myself, the person reporting.
We need more information to act on this report. As long as we can't repro it, it is unlikely with can make progress with it
The issue contains a script to reproduce the issue without any dependencies, describes actual and expected behaviour, and contains all relevant version information. What’s the part you’re having trouble with reproducing? Please elaborate.
playwright-core is an implementation detail of Playwright, why are you using playwright-core and not playwright?
I use playwright-core
as a dependency of a library (mermaid-isomorphic
). playwright
used to have an install
script. I do not want this in a library. I want the user to have to download browsers explicitly. Due to the isomorphic nature of mermaid-isomorphic
, not all users even need Playwright.
Apparently a breaking change was made in a minor version of playwright
: the install
script was removed. I haven’t narrowed down which version exactly.
The playwright
script from playwright-core
worked fine until version 1.33.0
(see package.json
). In version 1.34.0
the bin
field was removed (breaking change). In 1.35.0
a new bin
field was added, registering the playwright-core
executable instead.
The readme of playwright-core
contains the following content:
This package contains the no-browser flavor of Playwright.
There is no indication this package shouldn’t be used.
Really this issue is a result of undocumented breaking changes (1.34.0 release notes) on Playwright’s side.
Related issues:
I’ve also seen people complain on Twitter at some point, but I don’t have the sources readily available.
If I understand correctly, I should adjust mermaid-isomorphic
to the breaking changes made in Playwright 1.34.0
and change the playwright-core
dependency to playwright
. That doesn’t change the validity of this issue: playwright-core
logs misleading instructions.
Version
1.46.0
Steps to reproduce
In a clean environment, run the following JavaScript snippet:
Expected behavior
Playwright should instruct to run the following command:
Actual behavior
It instructs to run a command that doesn’t exist.
Additional context
The command needed to install playwright was changed somewhere in a minor version.
This is a duplicate of #29710. That issue was closed for unclear reasons as it’s a clear and actionable bug. If you need any more feedback, please ask.
Environment