-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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] Firefox doesn't install when using a installler made with electron-builder. #2539
Comments
Thank you for filing an issue. Could you please provide more details? Ideally, it would be some repro steps like "clone this, run this, deploy here, see this error". Without a repro, I have a number of questions:
|
Are you using playwright-electron to automate electron?
How is Firefox related to the compiled electron app? I cannot find any mentions of Firefox with electron-builder.
It seems like you miss the downloaded Firefox binary. Did you run npm install? Were there any errors?
I hope you can now understand my issue a bit better. |
Thanks, this helps. So, if I understand correctly, the electron-builder should run You can try to run the bundler with |
"electron-builder should run npm install for playwright"
"to use PLAYWRIGHT_BROWSERS_PATH=0 when running the playwright script"
|
Well, someone has to run |
I know what you mean by that but why did it work for puppeteer then? |
Most likely, puppeteer does not download to the shared location, but uses node_modules instead. That's what |
I think I get what you mean now. This might sound dumb know but how can I install with Is it just |
That's right. Look at our docs for more information. |
@SentoxAIO, to set the env var in windows, you can run
I'm updating the docs to work across platforms. Sorry for the confusion. |
All good, thank you guys very much |
So I have now playwright and firefox installed in the node_modules and firefox now also appears in the installer, but I still have the same error so it seems like firefox doesn't get launched properly on packaged code (on an exe). Do you guys have any idea why that is? |
@SentoxAIO I see you closed this one. Does that mean everything worked out?
You'll have to also pass |
Yeah I got it working now. Thx for your help. Appreciate it a lot |
@SentoxAIO what did you end up doing for your end users? I am wanting to achieve the same thing. My end users are not at all technical so trying to force them to install dependencies is not an option. Also, they aren't part of a company that could do it for them via a group policy. Just curious how you ended up solving the problem. |
+1 @matt, I'm having the same issue |
Context:
Describe the bug
![image](https://user-images.githubusercontent.com/57367608/84405400-5a203f00-ac08-11ea-8ad3-7c475fbb9328.png)
Playwright works perfectly if it isn't compiled but once I package the app with electron-builder and run the installer on a different device I get a error when running the playwright.
Thats the error:
Seems like playwright's firefox browser is execluded by the installer.
The text was updated successfully, but these errors were encountered: