0

I am new to GITHUB and NODE.js and I've tryed to put a page online on GITHUB but the way I see it is different from the way it shows up on my LOCALHOST.

Basically in the GITHUB link I can't see the OWL Carousel I used nor the Bootstrap Icons. While in my LOCALHOST it works properly.

What am I missing here?

Web page: https://lfavilla.github.io/rastelli/ Repository: https://github.com/lfavilla/rastelli

1 Answers1

0

Your resources are loading from node_modules which is not available on github, it shouldn't available on git.

you are trying to load resources like https://lfavilla.github.io/rastelli/node_modules/jquery/dist/jquery.slim.min.js

enter image description here

Run npm run build on your project and update git with build folder

In your index.html file use CDN version of jquery

Change

<script src="node_modules/jquery/dist/jquery.slim.min.js"></script>

to

<script src="https://code.jquery.com/jquery-3.6.0.slim.js"></script>

Also, change your bootstrap icon references to CDN

https://cdn.jsdelivr.net/npm/bootstrap-icons@1.4.0/icons/chevron-down.svg

you can find icons CDN here https://cdn.jsdelivr.net/npm/bootstrap-icons@1.4.0/icons/

Tushar Gupta - curioustushar
  • 58,085
  • 24
  • 103
  • 107