Chat on WhatsApp

Why is my Alpine.js component not working in Hyvä?

Categories: Hyvä Bug Fixing

A Hyvä x-data / x-init component goes dead for a few common reasons: (1) a JavaScript error earlier on the page halts Alpine before it reaches your component, (2) the component’s function is registered after alpine:init has already fired, or (3) a non-Hyvä extension injected a script that throws. We open the console, find the throwing line, and either reorder the registration or fix the upstream error. Typical symptom: Alpine Expression Error: x is not defined.

Was this helpful?