Installing daisyUI as a tailwindcss plugin not working #855
Unanswered
gimenezarami
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Could not find a declaration file for module 'daisyui'. 'C:/Users/arami/Desktop/TAILWIND CLI/node_modules/daisyui/src/index.js' implicitly has an 'any' type.
Try
npm i --save-dev @types/daisyui
if it exists or add a new declaration (.d.ts) file containingdeclare module 'daisyui';
ts(7016)It appears that problem when I try to install it
this is my code
tailwind.config.js
`/** @type {import('tailwindcss').Config} */
module.exports = {
content: ["./src/index.html"],
theme: {
extend: {},
},
plugins: [require("@tailwindcss/typography")], [require("daisyui")],
};`
package.json
"name": "tailwind-cli",
"version": "1.0.0",
"description": "tailwind sample",
"main": "index.js",
"scripts": {
"build": "tailwindcss -i ./src/input.css -o ./dist/output.css --watch"
},
"author": "Arami",
"license": "ISC",
"devDependencies": {
"@tailwindcss/typography": "^0.5.2",
"daisyui": "^2.15.3",
"tailwindcss": "^3.1.2"
Beta Was this translation helpful? Give feedback.
All reactions