My code was working ideally before today. But now something is wrong, and it says âwalletconnect/web3-providerâ is missing."
index.html
<!DOCTYPE html>
<html>
<head>
<title>Vanilla Boilerplate</title>
<script src="https://github.com/WalletConnect/walletconnect-monorepo/releases/download/1.6.2/web3-provider.min.js"></script>
<script src="https://unpkg.com/moralis/dist/moralis.js"></script>
</head>
<body>
<h1>Moralis Hello World!</h1>
<button id="btn-login">Moralis Metamask Login</button>
<button id="btn-logout">Logout</button>
<script type="text/javascript" src="./main.js"></script>
</body>
</html>
main.js
const serverUrl = "**************************************";
const appId = "**************************************";
Moralis.start({ serverUrl, appId });
/* Authentication code */
async function walletConect() {
const user = await Moralis.authenticate({
provider: "walletconnect",
chainId: 56,
mobileLinks: [
"rainbow",
"metamask",
"argent",
"trust",
"imtoken",
"pillar",
]
})
console.log(user);
}