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

Tried running it but getting the below error #3

Closed
ali-habibzadeh opened this issue May 14, 2021 · 3 comments
Closed

Tried running it but getting the below error #3

ali-habibzadeh opened this issue May 14, 2021 · 3 comments

Comments

@ali-habibzadeh
Copy link

index.js:1
export { Metadata } from './src/models/metadata';
^^^^^^

SyntaxError: Unexpected token 'export'

running from ts-node. Code has nothing except import { SearchService } from "@internetarchive/search-service";

@ali-habibzadeh
Copy link
Author

ali-habibzadeh commented May 14, 2021

I guess while I am here, the docs seems to be old/wrong and is not matching the actual code

@jbuckner
Copy link
Collaborator

I have not tried using this in node, only in the browser. It's an es module. Does node support that?

What docs are incorrect?

@jbuckner
Copy link
Collaborator

Closing this. Please reopen with more details.

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