79107906

Date: 2024-10-20 19:42:03
Score: 1.5
Natty:
Report link

I'm not sure what the error was, if anyone knows why this occurs I will gladly accept that as an answer.

This error seesm to stem from the way Astro bundles javascript. I removed @astrojs/alpinejs and just installed alpinejs and import it in my script tag like so;

<script>
    import Alpine from "alpinejs";

    window.Alpine = Alpine;
    Alpine.data("stats", () => ({
    }));

    Alpine.start();
</script>

Which works great.

Reasons:
  • Blacklisted phrase (1): anyone knows
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: fiji