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

Firebase – cloud firestore – unit testing fails with error – TypeError: The “path” argument must be of type string

Firebase – cloud firestore – unit testing fails with error – TypeError: The “path” argument must be of type string. Otherwise, it works fine when run with NodeJS command ‘node index.js’ I use service account and NodeJS myservice.js var admin = require(“firebase-admin”); var serviceAccount = require(“./sakey.json”); admin.initializeApp({ credential: admin.credential.cert(serviceAccount), databaseURL: “https://myapp.firebaseio.com” }); const db = […]

Categories
Mastering Development

Published npm package does not apply styles

I’m currently working on creating an npm package. Which is basically a React component with added styles using SCSS. When I test it out, the class names are there, but no styles are being applied. Here is the repo for the package. I use a separated webpack config for building the specific folder where the […]

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”: […]