Skip to content

[Bug?]: Type error when adding Tailwind Vite plugin #1836

@mintydev789

Description

@mintydev789

Duplicates

  • I have searched the existing issues

Latest version

  • I have tested the latest version

Current behavior 😯

I get this type error when adding the tailwindcss() Vite plugin using the default project setup (I used Deno though, but probably shouldn't matter).

Image

Expected behavior 🤔

No response

Steps to reproduce 🕹

Steps:

  1. Create new project with the recommended Deno setup: deno run -A npm:create-solid. Use the solid start basic template with Typescript (keep in mind that the official setup hangs after it finishes, requiring Ctrl+Z to exit; this is probably also a bug).
  2. deno add --allow-scripts npm:tailwindcss
  3. Add this to the config object in app.config.ts:
  vite: {
    plugins: [
      tailwindcss(),
    ],
  },

Context 🔦

No response

Your environment 🌎

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions