Unable to login via Phantom wallet (suddenly) - this worked before

Unable to login via Phantom wallet (suddenly) - this worked before.
logon code below and no change was done to this:


Also no errors in Moralis

I see you posted more details on Discord with the updated serverUrl.

You need to update your Moralis script to https://unpkg.com/[email protected]/dist/moralis.js, read this on the change.

Hi there… I’m having the same issue, but using the [email protected] JS reference URL didn’t solve it…

This is the error I’m getting when trying to login to my SOL wallet using Phantom:

Uncaught (in promise) Error: Phantom wallet not available
at moralis.js:5111:17

Thanks for any help!
Roel

Do you have the Phantom wallet extension installed? Are you running your app with a local webserver (something like http://localhost:3000 in your browser)?

Hi! Yeah, got the Phantom wallet extension installed, but YES, indeed, it’s running on a local webserver… Is that not allowed? Should it need to run online?

Thanks for your help!

No the site needs to be running on a server so that is fine. Can you post your Moralis code including how you have imported moralis-v1? Can you try another browser with Phantom extension?