Overview

Inside of astro.config.mjs, integrations: [preact({ compat: true })] was added to support running React code into our Preact code which we wanted so we can import React libraries like useSWR for data fetching.

But doing that changed how Astro bundles our preact/compat library. The expected hooks are not available as exports anymore so it breaks the import maps that JS components rely on.

Proposed resolution

- TBD but something along the lines of fix the importmaps to point to libraries with un-minified exports or see if there is some Astro configuration that can be added to fix this

User interface changes

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

hooroomoo created an issue. See original summary.

hooroomoo’s picture

Issue summary: View changes
hooroomoo’s picture

Issue summary: View changes
hooroomoo’s picture

Assigned: Unassigned » hooroomoo

balintbrews made their first commit to this issue’s fork.

hooroomoo’s picture

Assigned: hooroomoo » Unassigned

hooroomoo’s picture

hooroomoo’s picture

hooroomoo’s picture

hooroomoo’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.