-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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] Webkit throws error when packaged within Node Modules using Electron-Packager #5472
Comments
@adwam12 I think you can safely remove |
@aslushnikov Thank you for the suggestion. I tried deleting that file and the error changed to: I tried recreating a minimal project with just playwright and electron-packager and the error remains. |
@adwam12 so from-inside the .local-browsers/webkit-1423$ find . -type l ! -exec test -e {} \; -print
./WebCore.framework/Frameworks
./WebKitLegacy.framework/WebKitPluginAgent
./WebKit.framework/Versions/A/XPCServices/com.apple.WebKit.WebAuthn.xpc
./WebKit.framework/Versions/A/XPCServices/com.apple.WebKit.GPU.xpc These are all the broken symlinks inside the webkit. You can freely remove them all - it should fix the problem. A one-liner for this would be: .local-browsers/webkit-1423$ find . -type l ! -exec test -e {} \; -print | xargs rm Could you please try and tell if it helped? |
Since we don't ship things like WebKitPluginAgent, we can safely remove all the symlinks that point to the missing targets. Fixes microsoft#5472
Since we don't ship things like WebKitPluginAgent, we can safely remove all the symlinks that point to the missing targets. Fixes microsoft#5472
Since we don't ship things like WebKitPluginAgent, we can safely remove all the symlinks that point to the missing targets. Fixes #5472
@aslushnikov YES! This worked and the application packaged correctly, thank you Andrey! |
@adwam12 great! We'll fix our WebKit distribution to remove dead links :) |
Context:
Describe the bug
I am working on an Electron app that launches Playwright webkit. The app is being packaged and should work without the user installing playwright themselves. I have packaged the browsers in Node Modules using "PLAYWRIGHT_BROWSERS_PATH=0" and set "process.env.PLAYWRIGHT_BROWSERS_PATH = 0" in my main.js.
Everything works on my local machine but when trying to package the app using Electron-Packager i get the following error:
I do have .local-browsers/webkit-1423/WebKitLegacy.framework/WebKitPluginAgent in my Node Modules. Everything works fine, and the app can be packaged if the Playwright browsers are installed outside of Node Modules but this will not work for my purpose.
I have already tried deleting and reinstalling my node modules. My issue seems vaguely similar to #2539 and #1988 but none of the offered solutions helped and my problem seemed different enough to warrant a new issue.
Any help would be GREATLY appreciated, as I've been stuck on this for quite a while.
The text was updated successfully, but these errors were encountered: