Skip to content
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

Cannot find module using webdriverio in worker in main process #511

Open
handita opened this issue Sep 3, 2024 · 0 comments
Open

Cannot find module using webdriverio in worker in main process #511

handita opened this issue Sep 3, 2024 · 0 comments
Labels
help wanted Extra attention is needed

Comments

@handita
Copy link

handita commented Sep 3, 2024

anyone can help??

I'm running in development it's working fine, but when I running in production it throws error

Cannot find module 'C:\Users\user\AppData\Local\Programs\envidi\resources\app.asar\node_modules\webdriverio\build\index.js' imported from C:\Users\user\AppData\Local\Programs\envidi\resources\app.asar\node_modules\webdriverio\build\cjs\index.js...

const wdio = require('webdriverio')
const client = await wdio.remote(opts);
await client.pushFile(videoDevicesPath, videoData);

I'm using this code in worker

I already unpack asar file and the webdriverio module already pack in that asar and the file is exist, I don't know how to fix this. Anyone can help?

@handita handita added the help wanted Extra attention is needed label Sep 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant