Yomguithereal / talisman

Straightforward fuzzy matching, information retrieval and NLP building blocks for JavaScript.
https://yomguithereal.github.io/talisman/
MIT License
704 stars 47 forks source link

Need help using Talisman with Luminus project (`exports is not defined`) #174

Open crinklywrappr opened 4 years ago

crinklywrappr commented 4 years ago

I'm working on a Luminus app and trying to use talisman. These are the steps I've taken:

  1. Use lein-npm to install the library and deps
  2. Add a script tag to my html. {% script "/npm/node_modules/talisman/metrics/levenshtein.js" %}

That works, but I see this error in the console:

levenshtein.js:3 Uncaught ReferenceError: exports is not defined
    at levenshtein.js:3