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

Can not use "child_process" #7170

Closed
LzxHahaha opened this issue Apr 23, 2016 · 1 comment
Closed

Can not use "child_process" #7170

LzxHahaha opened this issue Apr 23, 2016 · 1 comment
Labels
Resolution: Locked This issue was locked by the bot.

Comments

@LzxHahaha
Copy link

I try to write var cp = require("child_process") and get an error: Requiring unknown module "child_process", it's that mean I can't use this module in react native?

RN vertion 0.23.0, Node 5.11.0

Windows and OSX got the same error.

@ide
Copy link
Contributor

ide commented Apr 23, 2016

child_process and Node modules are not supported. It's sort of like how APIs like document.createElement don't exist in Node, and child_process doesn't exist in a browser -- React Native is a different environment.

@ide ide closed this as completed Apr 23, 2016
@facebook facebook locked as resolved and limited conversation to collaborators May 24, 2018
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Jul 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

3 participants