C
C#10mo 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
yattaOP10mo ago
The right picture is how the webpage suppose to look, the left one is how it looks like for now
Angius
Angius10mo 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
yattaOP10mo ago
devtools is f12 on the webpage I assume ?
Angius
Angius10mo 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
yattaOP10mo ago
all of them return 200 the stylesheet, i mean
Angius
Angius10mo ago
And do they contain what you'd expect them to contain? Click the request and see the response details
yatta
yattaOP10mo ago
this is the responses from them
No description
No description
yatta
yattaOP10mo ago
should it response with css code ?
Angius
Angius10mo 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
yattaOP10mo ago
this is the code I put in the index.css
No description
Angius
Angius10mo ago
Ah, you're using Tailwind Did you, uh, compile it? Or whatever it is that you do with Tailwind?
yatta
yattaOP10mo ago
ye, i mentioned it above :Arrestbi:
Angius
Angius10mo ago
Right
yatta
yattaOP10mo ago
compile ?
Angius
Angius10mo ago
Idk how Tailwind works lol Never used it You might have more luck asking in webdev-specific servers tbh, maybe in #web
yatta
yattaOP10mo ago
i see, lemme check :Arrestbi: aight, I actually have solved it, all it need was update the react version :Pikachu:
Want results from more Discord servers?
Add your server