calvinmetcalf / crypto-pouch

plugin for encrypted pouchdb/couchdb databases
MIT License
243 stars 44 forks source link

TypeError: utlis.Promise.all is not a function #69

Closed vickydadhich closed 3 years ago

vickydadhich commented 5 years ago

Getting below error after importing crypto-pouch plugin. Error: Uncaught (in promise): TypeError: utils.Promise.all is not a function TypeError: utils.Promise.all is not a function at index.js:105 at t.invoke (polyfills.js:3) at Object.onInvoke (core.js:4626) at t.invoke (polyfills.js:3) at r.run (polyfills.js:3) at polyfills.js:3 at t.invokeTask (polyfills.js:3) at Object.onInvokeTask (core.js:4617) at t.invokeTask (polyfills.js:3) at r.runTask (polyfills.js:3) at index.js:105 at t.invoke (polyfills.js:3) at Object.onInvoke (core.js:4626) at t.invoke (polyfills.js:3) at r.run (polyfills.js:3) at polyfills.js:3 at t.invokeTask (polyfills.js:3) at Object.onInvokeTask (core.js:4617) at t.invokeTask (polyfills.js:3) at r.runTask (polyfills.js:3) at c (polyfills.js:3) at c (polyfills.js:3) at polyfills.js:3 at t.invokeTask (polyfills.js:3) at Object.onInvokeTask (core.js:4617) at t.invokeTask (polyfills.js:3) at r.runTask (polyfills.js:3) at o (polyfills.js:3) at e.invokeTask [as invoke] (polyfills.js:3) at p (polyfills.js:2) So basically I am using this plugin in an Ionic 3 project and injecting in custom database service. whenever an object of db is created and db.crypto() function is called, it throws above error.

garbados commented 3 years ago

Howdy! The project has just released 4.0, which included a lot of significant changed. If it's still relevant to your work, I invite you to try again. Let me know how it goes!

garbados commented 3 years ago

I'm going to close this issue for now since it's been several years, but I can re-open it at your request :)