-
Notifications
You must be signed in to change notification settings - Fork 118
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
Pouchdb authentication giving error: Could not find module pouchdb-authentication
imported from (require)
#164
Comments
Static method worked. The other 2 didn't. |
I am facing the exact same issue. But the static method also doesn't work in my case. It gives an error at the '.login()' function, saying that the function doesn't exist. in app/authenticator/application.js |
@flynsequeira, @Sushmitha-KK Have you found what was you problem ? |
I've encountered the db.login function doesn't exist error after upgrading project's dependencies - it's just an assumption but as one of the upgrades was Webpack going from v2 to v3 and babel-loader v6 to v7, i think it might something to do with how one of them is treating default exports, anyways: by the force of console.log I've encountered that the result of
or if you insist on require:
There is some debate concerning the issues with default exports on the webpack's github, at the time still opened though. |
@tomasvarg Would you mind trying the following just to be sure ?
Also, please be specific as to what version of PouchDB and PouchDB Authentication you are using! |
@ptitjes as done so the result is the same as using require: ok on babel-node & Versions:
|
@tomasvarg It just appeared to me that you were giving a solution. So if it just works using ES6 imports, maybe I could close this bug. @flynsequeira ? |
I am facing issue . Angular 5 |
did npm install pouchdb-authentication
Further at this step,
var PouchDB = require("pouchdb");
PouchDB.plugin(require('pouchdb-authentication'));
Could not find module
pouchdb-authentication
imported from(require)
The text was updated successfully, but these errors were encountered: