skip to Main Content

React Native—react-native-dotenv error: api.addExternalDependency is not a function

I am using Expo (version: ~47.0.12) with React Native (version: 0.70.5), and I am unable to use the react-native-dotenv npm package. I have followed many tutorials, and they all result in this same error message: ./node_modules/expo/AppEntry.js TypeError: [BABEL] /Users/jessicagallagher/projects/sfl/sfl-mobile/node_modules/expo/AppEntry.js: api.addExternalDependency…

VIEW QUESTION

Unable to resolve module crypto – React native

I am attempting to implement WalletConnect V1 in my React-Native Wallet app. However, whenever I use the following import: import WalletConnect from "@walletconnect/client"; I get the following error: Unable to resolve module crypto from /Users/<my-name>/<company-name>/<client-name>/<app-name>/node_modules/@walletconnect/randombytes/dist/cjs/node/index.js: crypto could not be found…

VIEW QUESTION
Back To Top
Search