When I try to add some daisyUI component, i found it do not work in my device. Then, i noticed there is a bug in astro.config.mjs at line 64:
vite: {
plugins: [tailwindcss()],
},
which shows:
<html>TS2322: Type 'Plugin$1<any>[]' is not assignable to type 'PluginOption'.<br/>Type 'Plugin$1<any>[]' is not assignable to type 'PluginOption[]'.<br/>Type 'Plugin$1<any>' is not assignable to type 'PluginOption'.<br/>Type 'Plugin$1<any>' is not assignable to type 'Plugin<any>'.<br/>Types of property 'hotUpdate' are incompatible.<br/>Type 'ObjectHook<(this: MinimalPluginContext & { environment: DevEnvironment; }, options: HotUpdateOptions) => void | EnvironmentModuleNode[] | Promise<...>> | undefined' is not assignable to type 'ObjectHook<(this: HotUpdatePluginContext, options: HotUpdateOptions) => void | EnvironmentModuleNode[] | Promise<void | EnvironmentModuleNode[]>> | undefined'.<br/>Type '(this: MinimalPluginContext & { environment: DevEnvironment; }, options: HotUpdateOptions) => void | EnvironmentModuleNode[] | Promise<...>' is not assignable to type 'ObjectHook<(this: HotUpdatePluginContext, options: HotUpdateOptions) => void | EnvironmentModuleNode[] | Promise<void | EnvironmentModuleNode[]>> | undefined'.<br/>Type '(this: MinimalPluginContext & { environment: DevEnvironment; }, options: HotUpdateOptions) => void | EnvironmentModuleNode[] | Promise<...>' is not assignable to type '(this: HotUpdatePluginContext, options: HotUpdateOptions) => void | EnvironmentModuleNode[] | Promise<void | EnvironmentModuleNode[]>'.<br/>The 'this' types of each signature are incompatible.<br/>Type 'HotUpdatePluginContext' is not assignable to type 'MinimalPluginContext & { environment: DevEnvironment; }'.<br/>Type 'HotUpdatePluginContext' is missing the following properties from type 'MinimalPluginContext': debug, error, info, meta, warn
When I try to add some daisyUI component, i found it do not work in my device. Then, i noticed there is a bug in astro.config.mjs at line 64:
which shows: