forsartis / vue-cli-plugin-tailwind

vue-cli plugin for Tailwind CSS
MIT License
211 stars 10 forks source link

vue-cli install not working with Vue3 + TypeScript #28

Closed TheDutchCoder closed 3 years ago

TheDutchCoder commented 3 years ago

When adding the plugin through vue-cli, when it finishes it'll throw errors: image

ryanw3b3r commented 3 years ago

I have the same issue! Happens only if you request a full tailwind config file. All goes well if I accept default "minimal" config.

forsartis commented 3 years ago

This is a linting error and TailwindCSS doesn't support TypeScript as far as I know. As a workaround you can disable eslint for the require statement.

/* eslint-disable-next-line */
const colors = require('tailwindcss/colors')