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