-
-
Notifications
You must be signed in to change notification settings - Fork 10
Open
Description
error :
Unexpected use of css. Make sure that solid-styled's plugin is setup correctly.
configuration:
I tried this
export default defineConfig({
integrations: [solidJs(), integratePaths()],
plugins : [
solidStyled({
prefix: 'my-prefix', // optional
filter: {
include: 'src/**/*.{ts,js,tsx,jsx}',
exclude: 'node_modules/**/*.{ts,js,tsx,jsx}',
},
}),
]
});
also this
function integratePaths() {
return {
name: 'anique-solid-vite-config',
hooks: {
'astro:config:setup': ({updateConfig}) => {
updateConfig({
vite: {
plugins : [
solidStyled({
prefix: 'my-prefix', // optional
filter: {
include: 'src/**/*.{ts,js,tsx,jsx}',
exclude: 'node_modules/**/*.{ts,js,tsx,jsx}',
},
}),
]
},
});
},
},
};
}
export default defineConfig({
integrations: [solidJs(), integratePaths()]
});
Metadata
Metadata
Assignees
Labels
No labels