Xampp does not load javascript file, page turns white!

Asked

Viewed 143 times

-3

I wanted to create games in html and for that, I downloaded the xampp (in addition to the phaser files, of course) and followed a few steps I saw on the internet to configure it. However, every time I refer an external javascript file to my html file, the actions described in the file are not executed.

No errors or notes are shown in the html files. In the programmer’s tool console, there are no errors or warnings about this.

I installed the program without performing the requested "deactivations" and I’m not sure if it influences or not. All my files are in htdocs folder and I set the ports.

If anyone can help me, I’d really appreciate it.

  • 1

    Hello, avoid using code prints whenever you need to demonstrate a snippet of code put it as a text within source code markers. This helps us to study your question.

1 answer

0

Express or live server
Soon after this complication, I found that there are simpler ways to set up a local server. Here are two of them:
1) use express, serving static files
2) In Vscode, use the Live Server extension
And this is what it takes to get ready. Of course there are several other ways.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.