pouchdb-community/pouchdb-quick-search

Unable to load the plugin as ES6 module

jarrodek opened this issue · 3 comments

When importing the plugin as a ES6 module I've got the following error:

Uncaught ReferenceError: txt is not defined

This is caused by minified file missing variable declaration and by just using the variable.
ES6 modules are always in strict mode that causes the error.

It's had to pinpoint specific script that causes the issue. It looks like one of the dependencies. I was unable to do this. Maybe there is a way to check what causes the problem and replace / upgrade the library?

Any news on this? I'm using rollup as a bundler, which can only import CommonJS modules in strict mode, so this is blocking me now.

p12y commented

The issue can be traced to the md5-jkmyers dependency. It can be resolved by changing to a different md5 library. The current one is not maintained.

Any success with this?