tradle / rn-nodeify

hack to allow react-native projects to use node core modules, and npm modules that use them
MIT License
620 stars 112 forks source link

How to use with Yarn Workspaces #95

Open annie-elequin opened 4 years ago

annie-elequin commented 4 years ago

Seems that my project can't find "process" when attempting to run the postinstall script.

Do I need to nohoist the url, process, stream, events, etc things that I choose to install with rn-nodeify?

If so, do I use those names, or do I need to use the names of the packages that are actually installed (because aren't they named something different and they map to the real packages?)

adeyahya commented 3 years ago

@annie-elequin have you solve this?

adeyahya commented 3 years ago

@annie-elequin my case solved by duplicating keys react-native and browser into root package.json and doing postinstall in root of the monorepo instead.

annie-elequin commented 3 years ago

ooo I think I switched to using a different library (node-libs-react-native I think) but thank you!! I have been thinking of switching back to rn-nodeify so I will be sure to reference this if I have problems