Skip to content
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

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

Open
B1ackg0d opened this issue Nov 23, 2023 · 5 comments
Open

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

B1ackg0d opened this issue Nov 23, 2023 · 5 comments

Comments

@B1ackg0d
Copy link

pnpm dev:open

[email protected] 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:

  • D:\Project\tov-template-main\node_modules.pnpm\[email protected][email protected][email protected]\node_modules\unocss-preset-daisy\index.js
    at Module._resolveFilename (node:internal/modules/cjs/loader:1090:15)
    at Function.resolve (node:internal/modules/helpers:125:19)
    at _resolve (D:\Project\tov-template-main\node_modules.pnpm\[email protected]\node_modules\jiti\dist\jiti.js:1:251148)
    at jiti (D:\Project\tov-template-main\node_modules.pnpm\[email protected]\node_modules\jiti\dist\jiti.js:1:253746)
    at D:/Project/tov-template-main/node_modules/.pnpm/[email protected][email protected][email protected]/node_modules/unocss-preset-daisy/index.js:10:43
    at evalModule (D:\Project\tov-template-main\node_modules.pnpm\[email protected]\node_modules\jiti\dist\jiti.js:1:256443)
    at jiti (D:\Project\tov-template-main\node_modules.pnpm\[email protected]\node_modules\jiti\dist\jiti.js:1:254371)
    at D:/Project/tov-template-main/uno.config.ts:12:26
    at evalModule (D:\Project\tov-template-main\node_modules.pnpm\[email protected]\node_modules\jiti\dist\jiti.js:1:256443)
    at jiti (D:\Project\tov-template-main\node_modules.pnpm\[email protected]\node_modules\jiti\dist\jiti.js:1:254371)
    at loadConfigFile (file:///D:/Project/tov-template-main/node_modules/.pnpm/[email protected]/node_modules/unconfig/dist/index.mjs:153:13)
    at async Object.load (file:///D:/Project/tov-template-main/node_modules/.pnpm/[email protected]/node_modules/unconfig/dist/index.mjs:76:24)
    at async loadConfig (file:///D:/Project/tov-template-main/node_modules/.pnpm/@unocss[email protected]/node_modules/@unocss/config/dist/index.mjs:43:18)
    at async reloadConfig (file:///D:/Project/tov-template-main/node_modules/.pnpm/@unocss[email protected][email protected]/node_modules/@unocss/vite/dist/index.mjs:89:20) {
    code: 'MODULE_NOT_FOUND',
    requireStack: [
    'D:\Project\tov-template-main\node_modules\.pnpm\[email protected][email protected][email protected]\node_modules\unocss-preset-daisy\index.js'
    ]
    }

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
Copy link

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

@yicone
Copy link

yicone commented Dec 9, 2023

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

@yicone
Copy link

yicone commented Dec 9, 2023

Duplicate of #35

@whoooami
Copy link

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
Copy link

same.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants