-
Notifications
You must be signed in to change notification settings - Fork 209
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Cannot find module package/lib/cli/cli.js #1294
Comments
This is stderr output which is indeed maybe printed to a different place.
We can probably also include a few last stderr lines into the exception. Currently stderr output from the driver process is simply piped to stderr of the parent process (where the test runs), so you should already be able to see all those errors as part of stderr.
Yes, this is how playwright works today. We first extract the driver in a temp directory and then run it from there. We may replace that with a step where we download the driver once during installation / first run.
Playwright doesn't expect anyone else to touch the node modules / run any node commands in that directory. Even though merely running some node.js commands in that directory may be hamless, others may well modify the driver in an unexpected way. |
That would seem nice!
Thanks for considering it.
Sorry for the confusion, I had only run |
Yes, this should not matter. |
System info
After a long-running session, a simple, unadorned
Playwright.create()
can start failing with:It took me a long while to realise what was going on.
On stdout, which can be logged to a separate place relative to that of Java exceptions, I noticed:
So the issues that I would pinpoint/suggest are:
node
commands in this directory during this timenode
invocation spoil playwright's node?After restating the JVM session, the issue was gone. Therefore it's hard to reproduce, sorry.
Thanks - V
The text was updated successfully, but these errors were encountered: