-3
I can run my site on localhost. But on github pages the JS part does not work.
index.html:
<script src="index.js" type="text/javascript"></script>
-3
I can run my site on localhost. But on github pages the JS part does not work.
index.html:
<script src="index.js" type="text/javascript"></script>
0
Apparently you have done almost everything necessary, try this in your package.json
"scripts": {
...
"predeploy": "yarn build",
"deploy": "gh-pages -d build"
}
then rotate yarn run deploy
, I don’t understand why the src/index.html
, to deploy?
Browser other questions tagged javascript github github-pages
You are not signed in. Login or sign up in order to post.
You must do the build to work on Gh-pages.
– Valdeir Psr
Even building, nothing appears on the page
– Yann Almeida
No question can depend on external links, and if it works locally, it is probably not within the scope of the site. Alternatively, if you believe that the post is in scope, just [Dit] the post and bring a [mcve] problem to reevaluation. For future issues that are on site scope worth understanding What is the Stack Overflow and read the Stack Overflow Survival Guide (summarized) in Portuguese.
– Bacco