Hi guys here I want to integrate my Angular (12) with daisyUI (2.15.0). Everything goes right when I integrated the Angular with TailwindCSS (2.2.19), and also there's no problem with daisyUI installation. However, when I registered the daisyUI plugin into tailwind.config.js, the problem begin. Here is my tailwind.config.js :
module.exports = {
content: ["./src/**/*.{html,js,ts}"],
purge: [],
darkMode: false, // or 'media' or 'class'
theme: {
extend: {},
},
variants: {
extend: {},
},
plugins: [require("daisyui")], //everything goes right without this
};
The problem begin when I put the require("daisyui")
. My Tailwind CSS Intellisense showed an error message:
Tailwind CSS: :4:1: Variant cannot be generated because selector contains no classes.
This problem caused my Angular can't be used anymore. Anyway I followed the instruction from this source: https://daisyui.com/docs/install/