k4m4 / cryptocurrency-address-detector

Detect which cryptocurrency an address corresponds to.
MIT License
45 stars 10 forks source link

Error: Unable to resolve module `os` #6

Open Techno-Hwizrdry opened 4 years ago

Techno-Hwizrdry commented 4 years ago

I'm trying to import and use cryptocurrency-address-detector library in a react-native (version 0.63.2) project, like so:

import { detectCrypto } from 'cryptocurrency-address-detector';

I have even used it in a function, as described in README.md. However, when I compile my app, I get the following error:

_Error: Unable to resolve module 'os' from 'nodemodules/clean-stack/index.js': os could not be found within the project.

Has anyone run into this issue before? If so, how was it remediated?

k4m4 commented 4 years ago

Hey, @Techno-Hwizrdry! Apologies for the delayed response. I have never tried using cryptocurrency-address-detector within react-native, and I'm unsure why this error is being thrown. I'll have a look and will get back to you!