JS/jQuery parentheses error that I can't find

Multi tool use
Multi tool use


Ok, so here's the function I'm working on, and the let line is giving me this error:



SyntaxError: missing ) after argument list





If I comment out the line, the code processes just fine, but I can't seem to figure out what the error is in that line.



you're using await without the async keyword ,



The await operator is used to wait for a Promise. It can only be used inside an async function.



You are using await without an async context. Try this:



For further explanaiton please read this.



Assuming that your env supports async/await, your click handler needs to be async to use await.



Change



To



The error you are getting is exactly in await getTaskLogs and to solve it your code should be something like this:



You can only have await inside async functions.



Is this the line that's causing the error?



If so, then there are two possible problems:



1) You're running in an environment that does not support async/await yet (it's a quite new feature to javascript)
2) Or it's complaining that you've used await in a non-async function






By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

6 cdsisE
7cPlYRyqBkp,MqxjqP29MId I,4dFEG 1S7fTyVy

Popular posts from this blog

The Dalles, Oregon

영화 미래의 미라이 다시보기 (2018) 다운로드 링크 무료보기

Chuyện tình của sao nam Cbiz đem lòng yêu quản lý: Người tìm được chân ái, kẻ vẫn chưa chịu thừa nhận