[SOLVED] Localhost:8000 says ParseError: 100 XMLHttpRequest failed: "Unable to connect to the Parse API"

Index.html:

<meta charset="UTF-8">

<meta http-equiv="X-UA-Compatible" content="IE=edge">

<meta name="viewport" content="width=device-width, initial-scale=1.0">

<title>Easel Island</title>
<div>

    <button id="btnConnect">Connect Wallet</button>

    <button id="btnUserInfo">Profile</button>

</div>

<script src="https://cdn.jsdelivr.net/npm/web3@latest/dist/web3.min.js"></script>

<script src="https://unpkg.com/moralis/dist/moralis.js"></script>



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

main2.js:
Moralis.initialize(“wZsf07rYLfsPudepzTdjvrAsYfgWAQb0BFbnTFJI”);

Moralis.serverUrl = “https://w6j9c9lnnoio.usemoralis.com:2053/server”;

init = async () => {

window.web3 = await Moralis.Web3.enable();

initUser();

};

initUser = async () => {

if (await Moralis.User.current()) {

    hideElement(userConnectButton);

    showElement(userProfileButton);

}else {

    showElement(userConnectButton);

    hideElement(userProfileButton);

   

}

}

login = async () => {

try {

    await Moralis.Web3.authenticate();

initUser();

} catch (error) {

    alert(error)

}

}

hideElement = (element) => element.style.display = “none”;

showElement = (element) => element.style.display = “block”;

const userConnectButton = document.getElementById(“btnConnect”);

userConnectButton.onclick = login;

const userProfileButton = document.getElementById(“btnUserInfo”);

init();

Hi, you can see here how to post formatted code: READ BEFORE POSTING - How to post code in the forum

it looks like you are using that old syntax and not the syntax with Moralis.start
You have an example here: https://github.com/MoralisWeb3/demo-apps/blob/main/moralis-vanilla-boilerplate/main.js

Umm, the old syntax started working somehow so that is why I am using it