Skip to content

Error from ESLint : keyword await outside of async functions #36

@gisellemcneill

Description

@gisellemcneill

When running ESLint, 3 errors were revealed. 1 of the errors will not cause a crash because it is an unused variable, so it indicates incomplete or unnecessary code. 2 of the errors will cause a crash, as it is the use of the keyword "await" outside of async functions, which is a requirement for JavaScript that the keyword is used inside an asynchronous function. We need to identify and fix those two instances to prevent future crashes.

Need to check which code has the errors and have the implementer revisit these areas.

Error in app.js and deploy-commands.js

workspaces/Giselle-WaveY/src/app.js
23:1 error Parsing error: Cannot use keyword 'await' outside an async function

/workspaces/Giselle-WaveY/src/deploy-commands.js
11:33 error Parsing error: Cannot use keyword 'await' outside an async function

/workspaces/Giselle-WaveY/src/events/guildMemberAdd.js
6:7 error 'event' is assigned a value but never used no-unused-vars

✖ 3 problems (3 errors, 0 warnings)

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