#close
1 messages · Page 1 of 1 (latest)
you get the error during build? this should be fine
i meant, that shouldn't be causing an error. the build error is not fine lol
how is the CSS imported?
its hard to confirm what the cause might be (might be some old vite 3 bug even, id recommend trying out vite 4, 4.4 is the latest)
and just to confirm, you've updated your index.html from CRA to vite, yes?
hmm fair
https://ibb.co/7y3J5gC I tried with vite 3, didnt manage to get the error
applied the style on body
what is your tsconfig? maybe some aliases are clashing
also share your package.json
how are you running the build
@ornate anchor ^
curious why you need the esbuild command at the start of your build? just tsc && vite build should work
wait are you using typescript? your entry seems to be index.js
hmm, try this + removing viteTsConfig() paths from your vite.config?
that's really weird
is it possible for you to share a reproduction? on a github repo or something like https://stackblitz.com?
is your JSX in .js files?
yeah im guessing that is causing some issue -> the first esbuild might be messing things up for vite. not really sure
why? is the preview not working?