SolidJSS
SolidJSโ€ข10mo agoโ€ข
6 replies
lili/lilith

Cannot run React alongside SolidJS in Astro

The Error:
[vite] The requested module 'solid-js/jsx-dev-runtime' does not provide an export named 'jsxDEV'

My Astro Config:
...
import react from "@astrojs/react";
import solid from "@astrojs/solid-js";
...

// https://astro.build/config
export default defineConfig({
  ...
  integrations: [
    solid({
      include: ["**/solid/*"],
    }),
    react({
      exclude: ["**/solid/*"],
    })
    ...
});


I don't believe it's an issue with my component. I'm trying to compile anything inside a "solid" directory (any of the parent directories that match that) with SolidJS, and everything else with react
Was this page helpful?