C
C#4mo ago
yatta

Frontend not working

I dont really keen on frontend but I think have some knowledge about it would be nice, I'm learning how to use react typescript with tailwinds, and my app is not works as it should be, may I ask for some suggestion where should I check in my code to know the problem ?
No description
No description
16 Replies
yatta
yatta4mo ago
The right picture is how the webpage suppose to look, the left one is how it looks like for now
Angius
Angius4mo ago
It seems like your CSS is not loading So... open the devtools and see if it is returning a 404 or what's going on
yatta
yatta4mo ago
devtools is f12 on the webpage I assume ?
Angius
Angius4mo ago
ye Then the network panel Then F5 to refresh the page And see if the stylesheet request works or returns a 404 or some other error
yatta
yatta4mo ago
all of them return 200 the stylesheet, i mean
Angius
Angius4mo ago
And do they contain what you'd expect them to contain? Click the request and see the response details
yatta
yatta4mo ago
this is the responses from them
No description
No description
yatta
yatta4mo ago
should it response with css code ?
Angius
Angius4mo ago
Considering it's a CSS stylesheet... yes, it should respond with CSS code And, it seems, it does Is it the code that you wrote to make the site look like the image on the right? Or are there discrepancies? Maybe it's an older version of what you currently have?
yatta
yatta4mo ago
this is the code I put in the index.css
No description
Angius
Angius4mo ago
Ah, you're using Tailwind Did you, uh, compile it? Or whatever it is that you do with Tailwind?
yatta
yatta4mo ago
ye, i mentioned it above :Arrestbi:
Angius
Angius4mo ago
Right
yatta
yatta4mo ago
compile ?
Angius
Angius4mo ago
Idk how Tailwind works lol Never used it You might have more luck asking in webdev-specific servers tbh, maybe in #web
yatta
yatta4mo ago
i see, lemme check :Arrestbi: aight, I actually have solved it, all it need was update the react version :Pikachu: