#close

1 messages · Page 1 of 1 (latest)

ornate anchor
#

Why?? No loader is configured for ".png" files:

gilded lake
#

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?

gilded lake
#

hmm fair

#

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 ^

gilded lake
#

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

gilded lake
gilded lake
#

that's really weird

#

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

gilded lake
#

why? is the preview not working?

gilded lake
#

sorry didnt get you

#

what part looks like what

#

Yeah this is normal