JonW001
JonW001

Reputation: 125

"Source map error: TypeError: NetworkError when attempting to fetch resource." on LOCAL page

I have an HTML form that I'd like to format using Bootstrap styles. Styles only, no Javascript (yet). I'm running this locally, not on any server, since it shouldn't need a server yet. The page in question already has some extensive styling that I wrote myself, in a separate stylesheet.

I put some Bootstrap styles into my HTML, then included a link to the bootstrap.min.css stylesheet in the HTML page. Result? The Bootstrap styles won't load -- and on top of that, some of my own styles, which load before the Bootstrap stylesheet, stop working. When I disable the link to Bootstrap.min.css, my own styles work again.

When the link to Bootstrap.min.css is enabled, I get this error:

Source map error: TypeError: NetworkError when attempting to fetch resource. Resource URL: file:///[local-path]/bootstrap.min.css Source Map URL: bootstrap.min.css.map

How do I fix this error? How do I get my own styles to work properly when I include bootstrap.min.css?

Upvotes: 8

Views: 9529

Answers (1)

Muz
Muz

Reputation: 5980

The error seems to happen when bootstrap.min.css.map is not in the same folder as bootstrap.min.css.

Try to include the .map file in the same folder.

Upvotes: 0

Related Questions