HTML loads but without CSS, css components are in JS loaded as a module #10556
-
I tried to upload my site to vercel. Built and deployed but it only displays the html and no CSS. Site: |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
if you take a look at the console you will see that you are loading the CSS stylesheet with https://website-portfolio-gvpot4af2-kishonshrill.vercel.app/website-portfolio/assets/dark-mode-eecc09e8.css while the correct path is https://website-portfolio-gvpot4af2-kishonshrill.vercel.app/assets/dark-mode-eecc09e8.css |
Beta Was this translation helpful? Give feedback.
-
I guess you are referring to this https://vite-plugin-ssr.com/base-url I haven't deployed any Vite app but if you are setting |
Beta Was this translation helpful? Give feedback.
if you take a look at the console you will see that you are loading the CSS stylesheet with https://website-portfolio-gvpot4af2-kishonshrill.vercel.app/website-portfolio/assets/dark-mode-eecc09e8.css while the correct path is https://website-portfolio-gvpot4af2-kishonshrill.vercel.app/assets/dark-mode-eecc09e8.css