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

Error while running a simple script #26

Open
krekorian opened this issue May 29, 2020 · 1 comment
Open

Error while running a simple script #26

krekorian opened this issue May 29, 2020 · 1 comment

Comments

@krekorian
Copy link

When I run the script listed on the read me, I get the following error

const devices = await usb.getDevices(); ^^^^^ SyntaxError: await is only valid in async function

also import command does not work either, I had to use require

@CaptainMack
Copy link

I'm also having problems getting this running - is this for internal use only or can you provide an example of how to use this? We are in dire need of tooling to automate the whole registration in production.

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