I am currently working on a React webpage that is hosted from Flask and called through Elixir. However, I am facing an issue where the HTML loads properly, but none of the CSS styles are displayed. Despite Chrome's developer tools showing that the CSS file is loaded with a HTTP status code 200, the styles are not being applied to the HTML page.
Here is the snippet of the HTML page in which React is loaded:
<!DOCTYPE html>
<html>
<head>
<title>React App</title>
<link rel="stylesheet" type="text/css" href="time-period/static/css/main.css"/>
</head>
<body>
<div id="root"></div>
</body>
</html>
After checking Chrome's inspect tool network tab, everything seems to be loading correctly.
UPDATE
Recently, I discovered an error message in the Google Chrome console:
Resource interpreted as Stylesheet but transferred with MIME type text/html: "http://localhost:3005/time-period/static/css/main.css".
Resource interpreted as Stylesheet but transferred with MIME type text/html: "http://localhost:3005/time-period/static/css/main.fd12a70d.css".
Does anyone have insights into why the CSS might not be getting implemented into the HTML, and any suggestions on how to resolve this issue? Any help would be greatly appreciated!