Skip to content

tailwindcss may wrong #71

Description

@elonwoo-02

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&lt;any&gt;[]' is not assignable to type 'PluginOption'.<br/>Type 'Plugin$1&lt;any&gt;[]' is not assignable to type 'PluginOption[]'.<br/>Type 'Plugin$1&lt;any&gt;' is not assignable to type 'PluginOption'.<br/>Type 'Plugin$1&lt;any&gt;' is not assignable to type 'Plugin&lt;any&gt;'.<br/>Types of property 'hotUpdate' are incompatible.<br/>Type 'ObjectHook&lt;(this: MinimalPluginContext &amp; { environment: DevEnvironment; }, options: HotUpdateOptions) =&gt; void | EnvironmentModuleNode[] | Promise&lt;...&gt;&gt; | undefined' is not assignable to type 'ObjectHook&lt;(this: HotUpdatePluginContext, options: HotUpdateOptions) =&gt; void | EnvironmentModuleNode[] | Promise&lt;void | EnvironmentModuleNode[]&gt;&gt; | undefined'.<br/>Type '(this: MinimalPluginContext &amp; { environment: DevEnvironment; }, options: HotUpdateOptions) =&gt; void | EnvironmentModuleNode[] | Promise&lt;...&gt;' is not assignable to type 'ObjectHook&lt;(this: HotUpdatePluginContext, options: HotUpdateOptions) =&gt; void | EnvironmentModuleNode[] | Promise&lt;void | EnvironmentModuleNode[]&gt;&gt; | undefined'.<br/>Type '(this: MinimalPluginContext &amp; { environment: DevEnvironment; }, options: HotUpdateOptions) =&gt; void | EnvironmentModuleNode[] | Promise&lt;...&gt;' is not assignable to type '(this: HotUpdatePluginContext, options: HotUpdateOptions) =&gt; void | EnvironmentModuleNode[] | Promise&lt;void | EnvironmentModuleNode[]&gt;'.<br/>The 'this' types of each signature are incompatible.<br/>Type 'HotUpdatePluginContext' is not assignable to type 'MinimalPluginContext &amp; { environment: DevEnvironment; }'.<br/>Type 'HotUpdatePluginContext' is missing the following properties from type 'MinimalPluginContext': debug, error, info, meta, warn

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions