Replies: 1 comment 1 reply
-
Needing to disable sandbox is a known workaround for being unable to load the preload script, however the documentation could be clearer here; it seems ERB is unable to find the preload when sandbox is enabled despite the preload being bundled with Webpack. Rather than trawling through Webpack docs to work out why the bundling in ERB is not behaving as I expected, I'll update the service docs to make it more obvious what the fix is, in this case. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm not that well versed in the whole packaging eco-system of node and electron, so this problem might not be a wdio-electron-service. That's the reason why this is a discussion and not an Issue directly.
I've taken electron-react-boilerplate and added the wdio-electron-service imports into main.ts and preload.ts as documented. I have not wrapped them in the if's because that's not really necessary for this example.
Now when I run the app I receive the following error:
If I enable
nodeIntegration
or disablesandbox
in theBrowserWindow
it loads fine.Is this problem correctly addressed here?
wdio 9 and wdio-electron-service 7.0.1
Beta Was this translation helpful? Give feedback.
All reactions