There is a npm package we made for our team usage and inside that we are using this uuidjs
. Now I have installed this custom npm package on my Create-React-App which am testing with testing-library
.
When I test the component which imports the files from this custom package which has uuidjs
I get following error:
crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported
I know there are answers to this questions is install react-native-get-random-values
. But my confusion is can I install this in CRA which uses React.js? Is react-native
has anything to do with it or its independent?