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

Unexpected token ; when running from Command Line and from /examples/ #10

Open
AndrewCrider opened this issue Feb 17, 2021 · 1 comment

Comments

@AndrewCrider
Copy link

I attempted to run from both the command line for search and download. Consistently getting the below error when using the CLI and running the example files.

(base)  roam-research-private-api/examples % node download.js        
/usr/local/lib/node_modules/roam-research-private-api/RoamPrivateApi.js:13
	options;
	       ^

SyntaxError: Unexpected token ;
    at Module._compile (internal/modules/cjs/loader.js:721:23)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:787:10)
    at Module.load (internal/modules/cjs/loader.js:653:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
    at Function.Module._load (internal/modules/cjs/loader.js:585:3)
    at Module.require (internal/modules/cjs/loader.js:690:17)
    at require (internal/modules/cjs/helpers.js:25:18)
    at Object.<anonymous> (/usr/local/lib/node_modules/roam-research-private-api/examples/download.js:1:24)
    at Module._compile (internal/modules/cjs/loader.js:776:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:787:10)
@dimfeld
Copy link

dimfeld commented Feb 24, 2021

See #9 (comment) for an explanation. I think newer versions of Node support this natively but I'm not sure which ones exactly.

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

2 participants