kaelad
LOELeague of Extraordinary FoundryVTT Developers
•Created by Ark on 4/16/2025 in #package-development
Error message on Roll: await is only valid in async functions and the top level bodies of modules
That error is referring to the fact that the function you're giving in
addEventListener
isn't async
. If you add an await
to a function, that function needs to be labeled as async
. Something like this would fix that.
5 replies