Category : github-pages

I build a project with a local server (using live server VS extension), which works fine. In this project, I’m using javascript modules, so in index.html, I have : <script src="./js/index.js" type="module"></script> And in index.js : import { getPhotographers } from ‘./tagsfilter.js’; The issue comes when I try to display the website using github pages. ..

Read more

Can someone tell me why the javascript works on localhost, but when using github Pages or vercel, the javascript stops? code on github:https://github.com/Marincor/Bx-Bank Deploy githubpage: https://marincor.github.io/Bx-Bank/ Deploy on Vercel: https://bx-bank.vercel.app/ when I go to the dev tools source of the pages index.html and cadastro.html they don’t have the JS folder that I have linked. print ..

Read more

Source code for app: https://github.com/shardul-shah/first-angular-app It works on gh-pages… kind of (https://shardul-shah.github.io/first-angular-app/) Problems: When going to this, https://shardul-shah.github.io/first-angular-app/ , the URL automatically changes to https://shardul-shah.github.io/first-angular-app/first-angular-app/ Refresh of https://shardul-shah.github.io/first-angular-app/first-angular-app/ (or any refresh for that matter on any route) leads to white, empty screen. The app works when I click "my store" in https://shardul-shah.github.io/first-angular-app/first-angular-app/ , but not ..

Read more