Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rollup-plugin-react-scoped-css and vite 5.x Compatibility problem #57

Open
wmx-us opened this issue Dec 25, 2023 · 4 comments
Open

rollup-plugin-react-scoped-css and vite 5.x Compatibility problem #57

wmx-us opened this issue Dec 25, 2023 · 4 comments

Comments

@wmx-us
Copy link

wmx-us commented Dec 25, 2023

Type 'VitePartialPlugin[]' is not assignable to type 'PluginOption'.
Type 'VitePartialPlugin[]' is not assignable to type 'PluginOption[]'.
Type 'VitePartialPlugin' is not assignable to type 'PluginOption'.
Type 'VitePartialPlugin' is not assignable to type 'Plugin'.
Types of property 'resolveId' are incompatible.
Type 'ObjectHook<(this: PluginContext, source: string, importer: string, options: { assertions: Record<string, string>; custom?: CustomPluginOptions; isEntry: boolean; }) => ResolveIdResult | Promise<...>, {}>' is not assignable to type 'ObjectHook<(this: PluginContext, source: string, importer: string, options: { attributes: Record<string, string>; custom?: CustomPluginOptions; ssr?: boolean; isEntry: boolean; }) => ResolveIdResult | Promise<...>>'.
Type '(this: PluginContext, source: string, importer: string, options: { assertions: Record<string, string>; custom?: CustomPluginOptions; isEntry: boolean; }) => ResolveIdResult | Promise<...>' is not assignable to type 'ObjectHook<(this: PluginContext, source: string, importer: string, options: { attributes: Record<string, string>; custom?: CustomPluginOptions; ssr?: boolean; isEntry: boolean; }) => ResolveIdResult | Promise<...>>'.
Type '(this: PluginContext, source: string, importer: string, options: { assertions: Record<string, string>; custom?: CustomPluginOptions; isEntry: boolean; }) => ResolveIdResult | Promise<...>' is not assignable to type '(this: PluginContext, source: string, importer: string, options: { attributes: Record<string, string>; custom?: CustomPluginOptions; ssr?: boolean; isEntry: boolean; }) => ResolveIdResult | Promise<...>'.
The 'this' types of each signature are incompatible.
Property 'moduleIds' is missing in type 'import("d:/moonlet/workspace/cocos/web/wallet/node_modules/rollup/dist/rollup").PluginContext' but required in type 'import("d:/moonlet/workspace/cocos/web/wallet/node_modules/rollup-plugin-react-scoped-css/node_modules/rollup/dist/rollup").PluginContext'.ts(2322)
rollup.d.ts(195, 2): 'moduleIds' is declared here.
(alias) reactScopedCssPlugin(optionsIn?: ReactScopedCssPluginOptions): VitePartialPlugin[]
import reactScopedCssPlugin
No quick fixes available

image

Request assistance

@cmseguin
Copy link
Owner

cmseguin commented Dec 27, 2023 via email

@shakedbuk123
Copy link

hey i am getting this issue as well when reunning vite 5 and the alpha 17 version

@cmseguin
Copy link
Owner

cmseguin commented Jul 5, 2024

Are you still getting this issue with version ^1.0.0 ?
Also try removing any lock file and node_module folders

@shakedbuk123
Copy link

shakedbuk123 commented Jul 5, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants