React build connection with Moralis works local but not online

Hey there, hope you are fine. I have a problem uploading my site frontend with react and moralis connectionā€¦ i use vercel framework to upload to a vercel hostā€¦

In my local host, i can build my front and works perfect, but when i uploaded to vercel, nothing worksā€¦ before saying is a moralis thing, anyone can help me with a guide to check if i have to have any consideration with me front in order to publish and connect with moralis?

Does the site deploy? If so, check your browser console for any errors when browsing your site.

If it didnā€™t deploy, can you check your Vercel deploy logs for any errors.

Which React / Moralis / react-moralis versions are you using?

hey i think is a thing with the versionā€¦
ā€œmoralisā€: ā€œ^1.11.0ā€,
ā€œreact-moralisā€: ā€œ^1.4.1ā€,

import Moralis from 'moralis/types';

You need to be using [email protected] together with [email protected].

and the import is correct? using the type to make then the new objectā€¦

the error disappear but now another appearsā€¦ i have a problem to access to the API nowā€¦

Uncaught (in promise) Error: XMLHttpRequest failed: ā€œUnable to connect to the Parse APIā€
at handleError

and i woke up already the server :S

No, you import with import Moralis from 'moralis', looks like your editor autocorrected it.

What is your serverUrl? Make sure your serverUrl and appId are correct - if you have enabled domain whitelisting to your server, check that as well.