[astro-island] Error hydrating /src/components/s/AiwbDropDownButton.jsx SyntaxError: The requested module '/packages/starlight/node_modules/.pnpm/[email protected]/node_modules/postcss/lib/postcss.js?v=ba5af048' does not provide an export named 'default' (at postcss.mjs?v=ba5af048:1:8)
astro info:
Astro v5.1.6
Node v20.9.0
System Windows (x64)
Package Manager unknown
Output static
Adapter none
Integrations none
astro.config.mjs:
// @ts-ignore
import { defineConfig } from 'astro/config';
import starlight from '@astrojs/starlight';
// @ts-ignore
import UnoCSS from 'unocss/astro'
// @ts-ignore
import solidJs from '@astrojs/solid-js';
import path from "path";
import { fileURLToPath } from 'url';
import { dirname } from 'path';
const __filename = fileURLToPath(import.meta.url);
const __dirname = dirname(__filename);
// https://astro.build/config
export default defineConfig({
markdown: {
syntaxHighlight: 'prism',
gfm: true,
},
vite: {
server: {
watch: {
ignored: ["./starlight/*"], // HERE
},
},
resolve: {
alias: {
"~": path.resolve(__dirname, "./src")
}
}
},
integrations: [UnoCSS(), starlight({}), solidJs()],
});
no tailwind, but used a unocss integration.