Weird! I donāt know why this is popping up every time I reload my webApp. Earlier I was using moralis version 1.9.1
and as I upgraded my moralis version this error started showing up and is preventing page to load.
Any help?
Which sdk version are you using?
The latest moralis-v1 version is 1.11.0 and Moralis.onChainChanged
is working fine in this version.
Yeah its working fine now! Donāt know why it raised the issue in starting though.
It appears to not be working on latest (2.3.1).
You need to use moralis-v1 e.g. a version like 1.11.0 as johnversus mentioned.
Moralis 2.0 is a different SDK. You can watch this for an intro.
Thanks, yes targeting 1.11.0 works. Looks like the latest (v2) is a āpure backend libraryā and appears to be a breaking release (the 2nd breaking release Iāve seen from Moralis). They should call it moralis-backend
and keep v1 as a stable for backwards compatibility. Simply updating the moralis
library will break existing apps.
Yes moralis-v1
will still be maintained.