Style.css was not loaded because its MIME type, “text/plain”, is not “text/css”

Hi All,
Not sure if anyone else has this issue, it might just be me or a minor but. The code still runs but inspecting with my console I get the following:

Problem description:
The stylesheet ~…~style.css was not loaded because its MIME type, “text/plain”, is not “text/css”.
My css ref:

<link rel="stylesheet" type="text/css" href="style.css">

I made sure there are no typos and all is well referenced.

Expected behavior:
To reference the style sheet without error.

Actual behavior:
No behaviour change, code still runs properly except with the above mentioned error in console.

Firefox 111.0.1

Can you link your repl? You could always remove the type= and also if you are using a backend you have to specify the mime type.

1 Like

Nutrition Form Test? for me the mime type is text/css and it loads :thinking:

1 Like

Hey @amoldy! Welcome to the community!

I think it may be a sync issue between Replit and your device. A reload of your Repl should fix the issue.

1 Like