Closed leaysgur closed 9 months ago
Hey @leader22, thanks for the issue.
I fixed the error you're getting but then I ended up with another error :/
[plugin:ecsstatic] (0 , import_esbuild_plugin_noexternal.default) is not a function
/home/projects/github-a3inbg/src/Logo.tsx
at inlineVarsUsingEsbuild (file:///home/projects/github-a3inbg/node_modules/@acab/ecsstatic/vite.cjs:245:52)
This is a bit puzzling. I'll investigate further when I have some more time.
sandbox 1: https://stackblitz.com/edit/github-a3inbg sandbox 2: https://stackblitz.com/edit/github-huj6rz
Thanks for taking a quick look!
This is a bit puzzling. I'll investigate further when I have some more time.
Yeah, it's a tricky problem, I'm sorry that I could not be of help. 😅
I've decided to remove CJS support altogether. It's not worth supporting it in 2024. Vite has also deprecated its CJS support, so everyone needs to migrate to ESM anyway.
How to reproduce
type: module
field inpackage.json
npm run build
ornpm run dev
Work around
Rename
vite.config.(ts|js)
tovite.config.mjs
or
Just adding
type: moudle
field inpackage.json
if possible(Aside from that, I really favored the minimalist design. Thanks for a great library! 👏🏻 )