setTimeout not found, if you're not using node. Error could be made more clear to "use node"
In my case I had "use node;" at the top of my file 😦
3 Replies
To clarify, was this an error that happened in a function with
"use node"
at the top of the file? Or was this an error that happened in a function without "use node"
where the fix was to add "use node"
and we could've given a nice error message suggesting that fix?
For the latter, I totally agree and have this on my todo list (and thanks for the reminder). If the former, this sounds like a potential bug and I'd love to understand more!The fix was to add "use node"
I had accidentally included the semicolon "use node;"
which was my problem
ooh thank you for clarifying the presence of the semicolon. Yeah that's frustrating and merits a better error message. Thanks for the report!