Hitesh Kumar Hitesh Kumar - 24 days ago 6
Git Question

Github Pages: Scripts from vendor directory are not getting loaded

I am trying to create a blog on

github
for learning. My repo is hk-skit.github.io. I have added
angular
and
ui-router
scripts in my
vendor
directory. This is how I am including these in my
index.html
.

<script src="vendor/angular.min.js"></script>
<script src="vendor/angular-ui-router.min.js"></script>
<script src="js/app.js"></script>


This is my directory structure:

enter image description here

On my local, things are working fine. But when I pushed my changes to github. I don't know why it's saying
404
for
angularjs
and
ui-router
. Here's the link: http://hk-skit.github.io/. Can anyone please help me on this? Thanks.

Answer

I had this problem recently. Tried to rename the vendor folder (I used "deps") and it fixed the problem.

I don't know why this is happening, but it must be some new Jekyll version behavior.