Currently, I am facing an issue while developing an angular+bootstrap application for my work. At the initial stages of development, I encountered a problem where all the CSS breaks whenever I link to a local copy of Bootstrap, whether minified or not.
My current setup looks like this:
<!DOCTYPE html>
<html lang="en">
<head>
<title></title>
<meta charset="UTF-8">
<link rel="stylesheet" href="/client/app/lib/bootstrap/bootstrap.css">
<!-- Latest compiled and minified CSS -->
<!--<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css"
integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" crossorigin="anonymous">-->
</head>
<nav>
<ul class="nav nav-tabs" role="tablist">
<li role="presentation"><a>Option A</a></li>
<li role="presentation"><a>Option B</a></li>
<li role="presentation"><a>Option C</a></li>
<li role="presentation" class="active"><a>Option D</a></li>
</ul>
</nav>
<body>
<div class="container">
<div class="panel panel-default">
<div class="panel-body">Stuff goes here!</div>
</div>
</div>
</body>
</html>
By commenting out the CDN version of Bootstrap and uncommenting my local copy, everything works fine. I prefer relying on a local copy so I can work offline. Any assistance in resolving this issue would be highly appreciated.
EDIT
To confirm that the local path is correct, here is the project folder structure (excluding the node_modules folder contents)
Client
\---app
+---core
\---lib
+---angular (ignoring content of this folder)
+---bootstrap
bootstrap.css
\---font-awesome-4.5.0 (ignoring content of this folder)
\---node_modules (ignoring content of this folder)
Server
web-server.js
EDIT 2
While inspecting the developer tools in Chrome to identify any errors (thanks to Anonymouse for the suggestion), I came across the following:
Uncaught SyntaxError: Unexpected token < bootstrap.js:1
Upon navigating to index.html, the script tag for bootstrap.js is highlighted where the error occurred.
Additionally, another error was recorded:
Resource interpreted as Stylesheet but transferred with MIME type text/html:
"http://localhost:7000/lib/bootstrap/boostrap.css"