Multi-Framework Configuration in Recent Astro Verisons
Opened this issue · 0 comments
wessankey commented
If you're using a later version of Astro (I'm using 4.4.4
), you might run into the following error when rendering the React "Add to Cart" buttons:
Uncaught Error: Objects are not valid as a React child (found: [object HTMLButtonElement]). If you meant to render a collection of children, use an array instead.
To fix this, you'll need to update your astro.config.mjs
to specify which files belong to which framework. See the Astro documentation on this here.