Moralis is undefinied

Hey there,
I used moralis https://npmcdn.com/moralis/dist/moralis.js and now it got patched. Why is that ? my whole appilcation used moralis any help please ?

Same problem here too. Why did Moralis stop https://unpkg.com/[email protected]/dist/moralis.js without previous information This affected a lot of my DAPPs and now I have to start building from the scratch. THis is very bad

yes this is extremely bad. There must be a solution they cant just ruin everyones dapp with that update

lets see if they have a solution

can you give more info?

it could be related to this:

the link doesnt work at all https://npmcdn.com/moralis/dist/moralis.js

how did you get that link? where are you using it?

check this:

1 Like

Do you have the correct API endpoint

it doesnt support any browser or react.js ???
you guys must be kidding me. You ruined my whole application nice

this is what I used in vanilla js:

    <script src="https://unpkg.com/moralis-v1@latest/dist/moralis.js"></script>
1 Like

Ok… this one is working…LOL

1 Like

you have to give more info about how you are using it in your application

it works now all good xD. Whyare u guys saying it doesnt work in browser when thhe link you sent me does. Thank you my bad

1 Like

Thanks for the link but it would be great if you could prevent compatibility from breaking in the future. This is the second time this week this has happened. Please be more careful. Saves us a lot of hassle and damage control for whenever this happens.

yeah. Kindly warn us before doing this. I was about to get a heart attack xD

I was laughing hard…LOL LOL
I thought i was the only one encountering the issue. But when i saw comments. I dropped my cap.
Very Funny.
Please i beg o. No dey give us that kind stress again o. I fear ehn, All my whole DAPPS. Lols

Hi all

To prevent this in the future - ensure you dont use “latest” in your npm modules - as that tells npm to always download the latest version even if its a major release

Major release often means breaking changes

instead use ~ and ^

https://michaelsoolee.com/npm-package-tilde-caret/#:~:text=npm%20uses%20the%20package.,each%20section%20with%20different%20meaning.

or if using CDN specify exact version like this


<script src="https://unpkg.com/[email protected]/dist/moralis.js"></script>
2 Likes

Thanks a lot My Guy. I always enjoy your youtube tutorial. Very enthusiastic.

1 Like