-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
6.3.2 Error: Invalid Adapter: https #6603
Comments
6.3.2 was a broken release, apologies, hopefully 6.3.4 should be fixed |
Just tried again on 6.3.4, same error. Did something change with the ES module packaging? Wondering if I need to tweak my webpack settings. |
Nothing should have, we introduced 1 new dependency and that seems to have a large knock on effect, does import PouchDB from 'pouchdb' work? |
I installed the 'pouchdb' npm module and switched to
Update: I'm seeing this error with the bare 'pouchdb' module on 6.2.0 also, so may be unreleated. |
@jefbarn, @daleharvey: This error stems from a corrupt zonejs release, see angular/zone.js#835. Locking zonejs to |
@riddla Thanks for the heads up on the zone.js issue. It did fix the Looks like I'm still stuck on pouchdb 6.2.0 for now. |
(Sorry, I only got a phone at the moment and I am rephrasing:)
Using TypeScript/ES6 I had to change my imports also. From ...
import * as PouchDB from 'pouchdb-browser';
import * as PouchFind from 'pouchdb-find';
...to ...
import PouchDB from 'pouchdb-browser';
import PouchFind from 'pouchdb-find';
PouchDB.plugin(PouchFind);
This is more or less pseudocode, I can check my repo tomorrow if it does not help.
… Am 17.07.2017 um 20:27 schrieb Jeff Barnes ***@***.***>:
@riddla Thanks for the heads up on the zone.js issue. It did fix the _global is not defined. Unfortunately, I'm still having problems with the latest pouchdb build using plugins.
Using pouchdb-browser now, and trying to attach pouchdb-find plugin,
core.es5.js:1020 ERROR Error: Uncaught (in promise): TypeError: this.find is not a function
(I extend the Pouchdb object, hence 'this.find')
Looks like I'm still stuck on pouchdb 6.2.0 for now.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
@riddla Awesome, that was the trick!
|
Closing, have solution by slightly modifying the ES6 import syntax. (see above) |
Issue
After updating to pouchdb 6.3.2, upon initializing the PouchDB instance, it throws an 'Error: Invalid Adapter: https' error.
Info
Browser (Chrome 59)
Webpack
Custom build
Reproduce
Write the steps for others to reproduce issue here. Providing a code example, links to a repository or a live example (JSBin etc) are even more helpful.
Worked in 6.2.0
The text was updated successfully, but these errors were encountered: