kidonng / unocss-preset-daisy

UnoCSS preset for daisyUI
https://unocss-preset-daisy.vercel.app
MIT License
220 stars 19 forks source link

Error: Cannot find module 'daisyui/dist/unstyled.rtl.js' #37

Open B1ackg0d opened 7 months ago

B1ackg0d commented 7 months ago

pnpm dev:open

tov-template@1.18.0 dev:open D:\Project\tov-template-main vite --open

node:internal/modules/cjs/loader:1090 const err = new Error(message); ^

Error: Cannot find module 'daisyui/dist/unstyled.rtl.js' Require stack:

Node.js v19.6.1  ELIFECYCLE  Command failed with exit code 1.

     Hello,  I'm trying to preset daisyui in Vue3+Ts, but this error occurred. I'm using pnpm for the build. Can you provide me with some ideas to solve this problem? Thank you very much.

russelgal commented 7 months ago

"daisyui": "3.9.4" and it will be all right

yicone commented 7 months ago

@russelgal is right, I'm using a similar approach npm install daisyui@^3.9.4

yicone commented 7 months ago

Duplicate of #35

whoooami commented 5 months ago

It still not work with node v21.0, daisy: 4.6.2 (node:31653) [DEP0040] DeprecationWarning: Thepunycodemodule is deprecated. Please use a userland alternative instead. (Usenode --trace-deprecation ...` to show where the warning was created) error when starting dev server: Error: Cannot find module 'daisyui/dist/unstyled.rtl.js' Require stack:

hezhongfeng commented 3 months ago

same.