-
Notifications
You must be signed in to change notification settings - Fork 6
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
Comments
Hi I would encourage you to try the alpha version if possible for now. I
will probably release the 1.0.0 early 2024.
You could also let me know if you find any issues.
All you need to do is run `npm i -D rollup-plugin-react-scoped-css@alpha`
…On Mon, Dec 25, 2023, 1:02 a.m. moonlet ***@***.***> wrote:
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.png (view on web)
<https://github.com/cmseguin/rollup-plugin-react-scoped-css/assets/68103050/0a4f6985-9419-4052-a35a-715635609bd3>
Request assistance
—
Reply to this email directly, view it on GitHub
<#57>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABEBOHJ2EAGCW5COECX54ALYLE6KRAVCNFSM6AAAAABBCF66QOVHI2DSMVQWIX3LMV43ASLTON2WKOZSGA2TKNJTGQZTANQ>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
hey i am getting this issue as well when reunning vite 5 and the alpha 17 version |
Are you still getting this issue with version ^1.0.0 ? |
Dome both
קבל Outlook עבור Android<https://aka.ms/AAb9ysg>
…________________________________
From: cmseguin ***@***.***>
Sent: Saturday, July 6, 2024 2:01:16 AM
To: cmseguin/rollup-plugin-react-scoped-css ***@***.***>
Cc: Shaked Bukai ***@***.***>; Comment ***@***.***>
Subject: Re: [cmseguin/rollup-plugin-react-scoped-css] rollup-plugin-react-scoped-css and vite 5.x Compatibility problem (Issue #57)
Are you still getting this issue with version ^1.0.0 ?
Also try removing any lock file and node_module folders
—
Reply to this email directly, view it on GitHub<#57 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/BDO5YHIZNFKDFOZHQOJN3WDZK4QTZAVCNFSM6AAAAABBCF66QOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMJRGQ4DSOBRGQ>.
You are receiving this because you commented.Message ID: ***@***.***>
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
Request assistance
The text was updated successfully, but these errors were encountered: