Skip to content

[Bug] tailwindcss generate failed after 5 seconds #12914

Closed
@gaoluona

Description

@gaoluona

What happens?

My guess is that there are too many files to compile.

info - [plugin: ./node_modules/@umijs/plugins/dist/tailwindcss] tailwindcss service started

Rebuilding...
error - [plugin: ./node_modules/@umijs/plugins/dist/tailwindcss] tailwindcss generate failed after 5 seconds, please check your tailwind.css and tailwind.config.js
✨ Done in 22.29s.

When I change the value to 15, it works fine.

Image

  • Umi Version: 4.3.35
  • Node Version: 18.18.0
  • Tailwindcss: 3.4.14
module.exports = {
  important: true,
  content: [
    './src/pages/**/*.{jsx,tsx}',
    './src/components/**/*.{jsx,tsx}',
    './src/layouts/**/*.jsx',
    './src/loading.tsx'
  ],
  theme: {
    zIndex: {
      '99': 99,
      '999': 999,
      '9999': 9999,
      '99999': 99999
    }
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions