adamhalasz / uniqid

Unique ID Generator
https://adamhalasz.com
617 stars 49 forks source link

Doesn't run in react native #24

Open jlkalberer opened 6 years ago

jlkalberer commented 6 years ago

I guess the os package isn't supported in react native.

I see this error:

bundling failed: Error: Unable to resolve module `os` from `C:\dev\node_modules\uniqid\index.js`: Module `os` does not exist in the Haste module map
Juliocbr commented 5 years ago

Same error in react native

guvenkaranfil commented 5 years ago

Did you resolve this issue?

josephgoksu commented 5 years ago

I'm getting the same error in react native 0.59.9. Any update for this issue?

elisechant commented 5 years ago

Yes, it requires operating system network interfaces -> https://github.com/adamhalasz/uniqid/blob/master/index.js#L17

Action: update the documentation to say, this package does not support React Native development.

akanshSirohi commented 4 years ago

@adamhalasz Make it available for react native also, it will be very helpful!