-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DaisyUI can't find type module #1366
Comments
Try using the repo examples as a boilerplate to start your project. I'm guessing it has to do with the way you set up your project. |
@yajatvishwak |
having the same issue the best way to fix it IMHO would be to create a "@types/daisyui" package at https://github.com/definitelytyped/definitelytyped |
do you know the shape of daisyui export thou? |
Hey! I'm happy to take this issue if no one else has started work. I've added types for some (much smaller) Tailwind plugins I've written so should be pretty simple. I'm also planning on adding types for the config so you should get intellisense for the |
|
Discussed in #819
Originally posted by huskyjp May 28, 2022
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 🙏
The text was updated successfully, but these errors were encountered: