Due to new updates in tailwind, i were using daisyui, but somehow it was not working, having some TypeError, how can i resolve this issue #15888
Vikash-shakya495
started this conversation in
General
Replies: 1 comment 1 reply
-
It seems like you may have tried to add Daisy UI as a Vite plugin, but really, it should be added as a Tailwind plugin. To add a JS-based Tailwind plugin in v4, use the |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
failed to load config from E:\vikash\programming\fullstackwebdev\chatApp\frontend\vite.config.js
error when starting dev server:
TypeError: daisyui is not a function
at file:///E:/vikash/programming/fullstackwebdev/chatApp/frontend/node_modules/.vite-temp/vite.config.js.timestamp-1737897320512-c400714fd3f7b.mjs:10:5
at ModuleJob.run (node:internal/modules/esm/module_job:262:25)
at async onImport.tracePromise.proto (node:internal/modules/esm/loader:485:26)
at async loadConfigFromBundledFile (file:///E:/vikash/programming/fullstackwebdev/chatApp/frontend/node_modules/vite/dist/node/chunks/dep-M1IYMR16.js:54130:15)
at async loadConfigFromFile (file:///E:/vikash/programming/fullstackwebdev/chatApp/frontend/node_modules/vite/dist/node/chunks/dep-M1IYMR16.js:53959:24)
at async resolveConfig (file:///E:/vikash/programming/fullstackwebdev/chatApp/frontend/node_modules/vite/dist/node/chunks/dep-M1IYMR16.js:53474:24)
at async _createServer (file:///E:/vikash/programming/fullstackwebdev/chatApp/frontend/node_modules/vite/dist/node/chunks/dep-M1IYMR16.js:43702:18)
at async CAC. (file:///E:/vikash/programming/fullstackwebdev/chatApp/frontend/node_modules/vite/dist/node/cli.js:746:20)
Beta Was this translation helpful? Give feedback.
All reactions