I can't link my bootstrap file I will face this error on my console the error is “MIME type ('text/html') is not a supported”?

This is my file path!

Here is my error that I will face.

Make sure you have bootstrap as dependency in package.json. If so try codes below.

Change href value to like this,

  • Import this like into your js file such, (first remove bootstrap link from .css file)
import 'bootstrap/dist/css/bootstrap.min.css';
import 'bootstrap/dist/css/bootstrap.css';

if none of these work, use CDN. (works all the time).

<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css" integrity="sha384-9aIt2nRpC12Uk9gS9baDl411NQApFmC26EwAOH8WgZl5MYYxFfc+NcPb1dKGj7Sk" crossorigin="anonymous">