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
os: linux manjaro 6.6.32
nodejs: 20
@yao-pkg/pkg: ^5.12.0
playwright-core: ^1.44.1
Hi!
I'm trying to build a binary of my application, it uses playwright (uses several browsers, although in this case I'm only interested in chromium).
My main goal is to ship a browser with the application, and make playwright work with this browser.
I tried copying the browser folder from ~/.cache/ms-playwright to the project directory, specifying executablePath. I tried using process.env.PLAYWRIGHT_BROWSERS_PATH and also did not achieve any results. I know for sure that I successfully added the browser folder to the assets pkg. I checked this using the debug flag.
However, I still got Failed to launch: Error: spawn /snapshot/appName/browsers/chromium-1117/chrome-linux/chrome ENOENT. I encountered such errors when using playwright and docker, but there it was enough to use npx scripts to install browsers.
Has anyone managed to make a binary file of the application using the browser and playwright? I would be very grateful for any tips.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
os: linux manjaro 6.6.32
nodejs: 20
@yao-pkg/pkg: ^5.12.0
playwright-core: ^1.44.1
Hi!
I'm trying to build a binary of my application, it uses playwright (uses several browsers, although in this case I'm only interested in chromium).
My main goal is to ship a browser with the application, and make playwright work with this browser.
I tried copying the browser folder from ~/.cache/ms-playwright to the project directory, specifying executablePath. I tried using process.env.PLAYWRIGHT_BROWSERS_PATH and also did not achieve any results. I know for sure that I successfully added the browser folder to the assets pkg. I checked this using the debug flag.
However, I still got Failed to launch: Error: spawn /snapshot/appName/browsers/chromium-1117/chrome-linux/chrome ENOENT. I encountered such errors when using playwright and docker, but there it was enough to use npx scripts to install browsers.
Has anyone managed to make a binary file of the application using the browser and playwright? I would be very grateful for any tips.
Thanks for any help!
Beta Was this translation helpful? Give feedback.
All reactions