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

error: bundling failed: Error: Unable to resolve module child_process #538

Closed
maihonganh1997 opened this issue Nov 16, 2020 · 2 comments
Closed

Comments

@maihonganh1997
Copy link

I installed cron package then it gives an error like this: "error: bundling failed: Error: Unable to resolve module child_process from project/node_modules/cron/lib/cron.js: Module child_process does not exist in the Haste module map"
react-native: 0.59.9
cron: 1.8.2
how to fix it? please

@danielehrhardt
Copy link

Same Issue here.

@sheerlox
Copy link
Collaborator

Hi, unfortunately, we currently do not support running in the browser.

We discussed removing child_process, which is used to run system commands from cron by providing a string instead of a function (IIRC).

There's an old PR related to this issue, but it is outdated.

We would gladly accept a similar PR that would disable the system commands feature in the browser environment.

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

3 participants