Skip to content
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

One minimal usage example #7

Open
emersonthis opened this issue May 24, 2016 · 0 comments
Open

One minimal usage example #7

emersonthis opened this issue May 24, 2016 · 0 comments

Comments

@emersonthis
Copy link

This library appears to be exactly what I need, but I'm having trouble figuring out how to use it and which are the minimal dependancies required to build a trie and then run lookups on it. When I try to load /scripts/ptrie-complete.js I get:

ReferenceError: namespace is not defined
    at Object.<anonymous> (/Users/ESL/Desktop/hola/trie-test.js:1:442)
    at Module._compile (module.js:434:26)
    at Object.Module._extensions..js (module.js:452:10)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)
    at Function.Module.runMain (module.js:475:10)
    at startup (node.js:117:18)
    at node.js:951:3

Weirdly, I get this same error even if I include /scripts/namespace.js before it. It's not obvious to me what namespace.js is...

I would love just a couple lines of code demonstrating how these fils are intended to be used. The index.html file is almost this, but it's currently broken at the moment because it tries to load resources that do not exist anymore.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant