Skip to content

UNSAFE_TAGGOR_GLOBAL: Component writes the taggor global

Severity Fault Stage
error customer (the source package) build output

The component assigns, defines or deletes window.taggor or one of its members (Object.defineProperty(window, “taggor”, …), taggor.on = …). The global is the host page’s API to its components; a component that replaces it can read the other components’ events and answer for them (rule taggor-global).

Talk to the page through your component’s declared events (context.emit); read the page’s API without writing to it.