Skip to content

Error while running a simple script #26

Open
@krekorian

Description

@krekorian

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions