magicseth
magicseth•2y ago

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
sshader
sshader•2y ago
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!
magicseth
magicsethOP•2y ago
The fix was to add "use node" I had accidentally included the semicolon "use node;" which was my problem
sshader
sshader•2y ago
ooh thank you for clarifying the presence of the semicolon. Yeah that's frustrating and merits a better error message. Thanks for the report!

Did you find this page helpful?