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 in react-native #5

Open
XantreDev opened this issue Apr 10, 2024 · 1 comment
Open

Does not work in react-native #5

XantreDev opened this issue Apr 10, 2024 · 1 comment

Comments

@XantreDev
Copy link

XantreDev commented Apr 10, 2024

If I use debug flag it tries to write logs into existing stdout (do not exist in react-native)
image
image

@XantreDev
Copy link
Author

It works with this global injection

global.process.env = {
  ...(global.process.env ?? {}), 
  DEBUG: 'true'
}
global.process.stdout ??= {}
global.process.stdout.write=console.log

@XantreDev XantreDev changed the title Do not work in react-native Does not work in react-native Apr 11, 2024
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

1 participant