Skip to content
Discussion options

You must be logged in to vote

I believe I found the problem. I used "vite" to create all my files and by default they add the JS link with a type of "module" which doesn't work in browsers, but in live-servers.

I already changed my index.html accordingly:

<script src="main.js"></script>

and commited the new version. Now I only got the problem, that the pages-hosting algorithm still uses my old index.html file. Maybe somebody got an idea how I can change that?

Replies: 2 comments 4 replies

This comment was marked as off-topic.

@LucasRegalar
Comment options

@kuciapakrystian

This comment was marked as off-topic.

@LucasRegalar
Comment options

Comment options

You must be logged in to vote
1 reply
@LucasRegalar
Comment options

Answer selected by LucasRegalar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Pages Host a static website, right from your repo Question Ask and answer questions about GitHub features and usage
2 participants