https://i.sstatic.net/GSX2z.png
This is how the contents of my folder appear.
<html lang="en">
<head>
<meta charset="UTF-8>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible">
<link rel="stylesheet" href="../src/App.css">
<title>Document</title>
</head>
<body>
<div id="practice"></div>
<div id="farm"></div>
</body>
</html>
Despite having the correct path in the HTML code provided above, React does not recognize it and fails to load the CSS file. It seems that no matter what I try, the issue persists.
https://i.sstatic.net/P9BNa.gif
I can access the file by clicking CTRL + LMB
in VSC as shown in the GIF above. Upon changing the path to ./src/App.css
, VSC was unable to locate it due to an incorrect path.
Why does this problem continue to occur and are there any solutions you could suggest to resolve it?
Thank you for your attention.