pouchdb-community / pouchdb-quick-search

Full-text search engine on top of PouchDB
Apache License 2.0
381 stars 82 forks source link

Unable to load the plugin as ES6 module #91

Open jarrodek opened 5 years ago

jarrodek commented 5 years ago

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?

trenta3 commented 5 years ago

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 4 years ago

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.

sureshvv commented 2 years ago

Any success with this?