rafael79
rafael79
SSolidJS
Created by rafael79 on 5/11/2024 in #support
UnoCSS installation issue related to ESM imports
Hi. I just started a brand new solid project and then added UnoCSS. But does not seem to work, it gives the following error:
"unocss/vite" resolved to an ESM file. ESM file cannot be loaded by `require`. See https://vitejs.dev/guide/troubleshooting.html#this-package-is-esm-only for more details. [plugin externalize-deps]
"unocss/vite" resolved to an ESM file. ESM file cannot be loaded by `require`. See https://vitejs.dev/guide/troubleshooting.html#this-package-is-esm-only for more details. [plugin externalize-deps]
Downgrading unocss to 0.58.9 fix the issue. Maybe it is something related to the breaking changes in https://github.com/unocss/unocss/releases/tag/v0.59.0 ?
5 replies