Skip to content

Lesson7: SyntaxError: await is only valid in async functions and the top level bodies of modules #2374

Answered by othaime-en
udayg24 asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @udayg24 move the if statement in your 01-deploy-fundme.js file into the enclosing } of the module.exports section.

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@othaime-en
Comment options

@alymurtazamemon
Comment options

@udayg24
Comment options

Answer selected by alymurtazamemon
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants