You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using nanoid on RN throws an error saying react native does not have a built-in secure random generator. This is with import 'react-native-get-random-values'; included as well.
Notice that the error message is different from index.browser.js in 9b44531 that was supposed to fix the issue. I had a look at the nanoid package in my node_modules and index.browser.js is missing code from the commit.
if(typeofnavigator!=='undefined'&&navigator.product==='ReactNative'&&!self.crypto// <--- this is missing){
...
Perhaps this needs to be re-released on npm?
Thanks!
The text was updated successfully, but these errors were encountered:
Using nanoid on RN throws an error saying react native does not have a built-in secure random generator. This is with
import 'react-native-get-random-values';
included as well.Notice that the error message is different from
index.browser.js
in 9b44531 that was supposed to fix the issue. I had a look at the nanoid package in mynode_modules
andindex.browser.js
is missing code from the commit.Perhaps this needs to be re-released on npm?
Thanks!
The text was updated successfully, but these errors were encountered: