I am trying to follow the tutorial at https://medium.com/beginners-guide-to-mobile-web-development/getting-started-with-pouchdb-f0f3d7baebab to use PouchDB inside of a server-side NodeJS script. and I’m getting stuck in Step 1: const PouchDB = require(‘pouchdb’); this results in: ReferenceError: require is not defined in ES module scope, you can use import instead When I google the error, I am told to change “type”:”module” to “type”:”commonjs”. Unfortunately,
Tag: pouchdb
PouchDB – Call get() in function ( TypeError: cb is not a function )
I am trying to make a simple login system using PouchDB, but I have a problem when I want to call db.get() in my function logIn() In the console I get Uncaught (in promise) TypeError: cb is not a function is there a better option for this? Answer The error Uncaught (in promise) TypeError: cb is not a function Is