-
Notifications
You must be signed in to change notification settings - Fork 117
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Invalid plugin: got "undefined", expected an object or a function #227
Comments
Do you do something like this? var PouchDB = require("pouchdb");
var PouchAuth = require("pouchdb-authentication");
PouchDB.plugin(PouchAuth); |
yes |
Hi @lakinmohapatra, thanks for you report. You have to give us more information for us to help you, as we are not mind readers yet. The issue template, that you promptly deleted, asked you some questions for exactly this reason. So as of your issue, we need at least to know:
|
import { Injectable } from '@angular/core'; @Injectable() constructor() { signup(formData : any) { signin(formData : any) { } } |
"pouchdb-authentication": "^0.5.5", |
I have updated it to 1.12 . But still showing error. import PouchDB from 'pouchdb'; Showing this.db.login is not a function. Using angular 5 |
@lakinmohapatra So it seems to be Typescript code. Can you show your Side note: the |
@lakinmohapatra any news ? |
I will share tsconfig. Thanks for the reminder. |
getting error on this
PouchDB.plugin(PouchAuth);
rror: Invalid plugin: got "undefined", expected an object or a function
Error: Invalid plugin: got "undefined", expected an object or a function
The text was updated successfully, but these errors were encountered: