Alternative way for latest version daisyui in node js version ≤ 16 #2015
JunedSetiawan
started this conversation in
General
Replies: 2 comments 2 replies
-
where should i replace that? |
Beta Was this translation helpful? Give feedback.
0 replies
-
Why don't you upgrade the node? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When installing the latest version of DaisyUI on node js version 16 and below you will get an error
[plugin:vite:css] [postcss] Object.hasOwn is not a function
If you don't want or can't update the node version for some reason.
An alternative way to get rid of the error is to replace the Object.hasOwn() method with the Object.hasOwnProperty() method.
And it works on node js version 16 and below .
There may be other alternatives..
Beta Was this translation helpful? Give feedback.
All reactions