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

bug: error: Cannot find module '../dist/utilities' #2543

Closed
leimantas opened this issue Nov 16, 2023 · 8 comments
Closed

bug: error: Cannot find module '../dist/utilities' #2543

leimantas opened this issue Nov 16, 2023 · 8 comments

Comments

@leimantas
Copy link

leimantas commented Nov 16, 2023

What version of daisyUI are you using?

4.2.0

Which browsers are you seeing the problem on?

No response

Reproduction URL

dont have

Describe your issue

After latest update to 4.2.0:

[ERROR] Build failed with 1 error:
error: Cannot find module '../dist/utilities'
Require stack:
- /node_modules/daisyui/src/index.js [plugin css-file]

Downgrading to 4.1.1 - everything works.

@luizkowalski
Copy link

hey @saadeghi
I just updated to 4.2.2 and now I'm seeing this too:

css        | Error: Cannot find module '../dist/utilities.cjs'
css        | Require stack:
css        | - /Users/luiz/Projects/sumiu/node_modules/daisyui/src/index.js
css        |     at Module._resolveFilename (node:internal/modules/cjs/loader:1144:15)
css        |     at Function.resolve (node:internal/modules/helpers:187:19)
css        |     at _resolve (/Users/luiz/Projects/sumiu/node_modules/jiti/dist/jiti.js:1:251148)
css        |     at jiti (/Users/luiz/Projects/sumiu/node_modules/jiti/dist/jiti.js:1:253746)
css        |     at /Users/luiz/Projects/sumiu/node_modules/daisyui/src/index.js:10:21
css        |     at evalModule (/Users/luiz/Projects/sumiu/node_modules/jiti/dist/jiti.js:1:256443)
css        |     at jiti (/Users/luiz/Projects/sumiu/node_modules/jiti/dist/jiti.js:1:254371)
css        |     at /Users/luiz/Projects/sumiu/tailwind.config.js:15:3
css        |     at evalModule (/Users/luiz/Projects/sumiu/node_modules/jiti/dist/jiti.js:1:256443)
css        |     at jiti (/Users/luiz/Projects/sumiu/node_modules/jiti/dist/jiti.js:1:254371) {
css        |   code: 'MODULE_NOT_FOUND',
css        |   requireStack: [ '/Users/luiz/Projects/sumiu/node_modules/daisyui/src/index.js' ]

@leimantas
Copy link
Author

leimantas commented Nov 16, 2023

Same. There are no files.

image

@saadeghi saadeghi reopened this Nov 16, 2023
@saadeghi
Copy link
Owner

Sorry I fucked up 🫣

@leimantas
Copy link
Author

Sorry I fucked up 🫣

no problems :D

@luizkowalski
Copy link

we all do it lol

@saadeghi
Copy link
Owner

Must be fixed now in 4.2.3

@leimantas
Copy link
Author

yes :) it works now!

@saadeghi
Copy link
Owner

(◍•ᴗ•◍)

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

3 participants