Replies: 4 comments 7 replies
-
@huskyjp for type error, see this: About the style not showing up, can you please share an example repo so I can reproduce the issue? |
Beta Was this translation helpful? Give feedback.
-
A fix for this is to add a path to the daisyui on your node_modules folder, picture below show it: |
Beta Was this translation helpful? Give feedback.
-
Adding global.d.ts file in root directory of projecting and writing - declare module "daisyui"; into the file is resolving the problem successfully. Hope it helps to some extent. Pls let me know for further explanation. Thanks. |
Beta Was this translation helpful? Give feedback.
-
Using it on the cdn worked but when I tried to create a custom theme, it gave me some visual errors. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I do have Nextjs & Tailwind codebase and just implemented daisyui by
npm i daisyui
.Then added
plugins: [require('daisyui')]
in tailwind.config.js file.I get a warning error that says like below and I believe typescript currently can not find daisyui type file??
Also - when I tried to simply implemet some daisyui component like
<button class="btn">My DaisyUI button</button>
it just shows text without any daisyui design.
I am not sure if the root problem is typescript error but when I start running the app, I get the daisyUI message so I believe the implementation is good but not working correctly for some reasaons.
Would love to know following points 🙏
Beta Was this translation helpful? Give feedback.
All reactions