This cancel cannot run before the handler loads
The message
MARKLESS_SYNC_POLICY_SECOND_CANCEL: This cancel cannot run before the handler loads
preventDefault() and stopPropagation() take effect only while the event is dispatching. Each top-level `if (...) event.preventDefault()` in a handler becomes a policy the page applies before the handler symbol loads; a cancel the compiler cannot place there would run after the event has finished.
https://markless.dev/errors/MARKLESS_SYNC_POLICY_SECOND_CANCELWhy
preventDefault() and stopPropagation() take effect only while the event is dispatching. Each top-level `if (...) event.preventDefault()` in a handler becomes a policy the page applies before the handler symbol loads; a cancel the compiler cannot place there would run after the event has finished.
Fix
Read the message above: it names the value or file involved. If it does not help, open an issue with the steps that cause it.
Related
Where Markless raises it
Button sounds are from Josh Comeau's Button Sounds library.