Uncaught ReferenceError: Moralis is not defined at app.js:4:1

Is there something wrong with the Moralis API?

My Dapp in development has been connecting perfectly fine to the Moralis API, however, for the last hour I haven’t been able to start my Dapp. Looking in the browser console, I noticed these error messages when trying to fire up my Dapp:

toEther

The code in my index.html page, starts as seen below:

<!doctype html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="Mark Otto, Jacob Thornton, and Bootstrap contributors">
    <meta name="generator" content="Hugo 0.84.0">
    <!-- Moralis socket -->
      <script src="https://cdn.jsdelivr.net/npm/web3@latest/dist/web3.min.js"></script>
      <script src="https://unpkg.com/moralis/dist/moralis.js"></script>
.
.
.

Also the code in app.js on line number 4 looks similar to the following. I have (for obvious reasons) altered the appId and the serverUrl details for this post:

/* Moralis init code */

const serverUrl = "https://ta6f0mh.usemoralis.com:2053/server";

const appId = "KlkWbziAO3xeSJKblmP9gbJa0FMGkIhsY3H";

Moralis.start({ serverUrl, appId });
.
.
.
  Looking forward to your help!

it should be fixed now, it was a problem with version 1.5.2, now latest version is 1.5.3 that should work fine

1 Like

Thanks for your response

I’ve been experiencing a similar issue for a few hours now?
Are you guys updating versions again?