Categories
Mastering Development

React-native: Could not resolve module masked-view from @react-navigation\stack\src\views\MaskedViewNative.tsx

I am getting this below error while building react-native app. @react-native-community/masked-view and @react-navigation\stack are up to date but not sure why this package is not being resolved while building. error: Error: While trying to resolve module `@react-native-community/masked-view` from file `C:\..\..\node_ modules\@react-navigation\stack\src\views\MaskedViewNative.tsx`, the package `C:\..\..\node_modules\@react-n ative-community\masked-view\package.json` was successfully found. However, this package itself specifies a `main` […]

Categories
Mastering Development

Missing modules used in the passport module in React Native

I’m currently working with Passport.js for sessions in my React Native app. After setting the server up and getting the code ready, I tried to run the app but was faced with a series of odd errors causing the build to fail. First error that shows right after npm run ios is: Error: Unable to […]

Categories
Mastering Development

Caused by: java.lang.Exception: Command `config` unrecognized

After Running Copied React-native project: Caused by: java.lang.Exception: Command config unrecognized. Make sure that you have run npm install and that you are inside a react-native project. I did npm install but it didn’t help. Package.json { “name”: “ProjectName”, “version”: “0.0.1”, “private”: true, “scripts”: { “android”: “react-native run-android”, “ios”: “react-native run-ios”, “start”: “react-native start”, “test”: […]