Parse error with Moralis.Web3.authenticate()

Moralis.Web3.authenticate().then(function (user) {    

Is causing the following error:

Uncaught (in promise) Error: You need to call Parse.initialize before using Parse.

Any idea on how to fix this would be great!

Currently I’m using “moralis”: “^0.0.25”. Using vue.js, and importing it using:

const Moralis = require('moralis');

into my index.vue.

You need to initialize Moralis before using it with your keys you get from dashboard

      // connect to Moralis server
      Moralis.initialize("paste Moralis APP ID here");
      Moralis.serverURL = "paste Morlis server URL here";


Got it to work. In ReactJS, use { isInitialized } = useMoralis(); functionality to do a conditional render check before rendering to avoid Error: You need to call Parse.initialize before using Parse. like so:
{ isInitialized === true && <<“YOURCOMPONENT”>> }

Moralis Rocks!


I am getting the same error, but do have the Moralis Provider at the root level of the app (ReactJS).
It works when the user is authenticated. But can we also query the database if no user is authenticated?


Hi Thomas! I know this is a bit old, but can you share with me if you only called this once in your app.js or if you had to call this isInitialized() as a condition before every useEffect() in every single component?