Error codesEvents

This cancel cannot run before the handler loads

MARKLESS_SYNC_POLICY_SECOND_CANCELerrorMarkless raises it while it builds your .tsrx files.

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_CANCEL

Why

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.

Where Markless raises it

All error codes