Closed Pandazaur closed 1 year ago
I found out that the problem is linked to the "package.json" with type: "module"
. When I remove it, it works.
I don't know if it's intended to work like this. You might specify it in the README
Hi if you try using 0.7.0 I think it should be fixed! :)
@Pandazaur Can you confirm that this issue is resolved for you on 0.7.0. I removed default exports so it should not be a problem now, you would just have to change
import reactScopedCssPlugin from "rollup-plugin-react-scoped-css";
to
import { reactScopedCssPlugin } from "rollup-plugin-react-scoped-css";
Hello,
I'm trying to use this package with Vite + React but I'cant start my dev server when I'm adding the README config.
I tried to change my import to:
import reactScopedCssPlugin from 'rollup-plugin-react-scoped-css'
which seems to be better in my IDE but then, when I'm trying tonpm run dev
, I have this error:My package.json
I'm using typescript in my project. Do you have any idea about how to fix this ?
Thanks