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

Does not work inside workers threads #357

Closed
luizfelipe94 opened this issue Aug 6, 2019 · 5 comments
Closed

Does not work inside workers threads #357

luizfelipe94 opened this issue Aug 6, 2019 · 5 comments

Comments

@luizfelipe94
Copy link

I am trying to use execa by running code in worker threads, and it is generating the TypeError error [ERR_WORKER_UNSUPPORTED_OPERATION]: process.chdir () is not supported in workers.

@luizfelipe94 luizfelipe94 changed the title support in workers support in workers threads Aug 6, 2019
@ehmicky
Copy link
Collaborator

ehmicky commented Aug 6, 2019

Hi @luizfelipe94,

This is due to one of our dependencies node-cross-spawn. process.chdir() is indeed not supported inside worker threads. Could you please create an issue on that repository? And post a link to that issue. Thanks!

@ehmicky
Copy link
Collaborator

ehmicky commented Oct 5, 2019

Issue in node-cross-spawn: moxystudio/node-cross-spawn#124

@ehmicky
Copy link
Collaborator

ehmicky commented Oct 6, 2019

PR at moxystudio/node-cross-spawn#127

@ehmicky
Copy link
Collaborator

ehmicky commented Oct 6, 2019

The PR was merged, so this issue will be fixed once a new release of node-cross-spawn is made

@ehmicky
Copy link
Collaborator

ehmicky commented Oct 7, 2019

This should now be fixed. Your package-lock.json or yarn.lock might need to be re-generated first.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants