This is my issue too. Can we get a solid answer? For me, Moralis is useless now! I’m having too many issues, and it seems Alchemy might be a better option even though more coding will be required. Also, your API documentation is very confusing, and now we stopped our development all due to these errors! Can someone escalate this and get to the bottom of this, please?
function MyApp({ Component, pageProps }) {
return (
<Component {…pageProps} />
);
}
"@walletconnect/web3-provider": "^1.8.0",
"@web3auth/web3auth": "^1.2.0",
"babel-plugin-styled-components": "^2.0.7",
"dotenv": "^16.0.0",
"keccak256": "^1.0.6",
"magic-sdk": "^9.0.0",
"merkletreejs": "^0.2.32",
"moralis": "^2.0.3",
"next": "12.2.4",
"parallax-controller": "^1.5.0",
"react": "^18.2.0",
"react-alice-carousel": "^2.6.4",
"react-dom": "^18.2.0",
"react-moralis": "^1.4.1",
"react-scroll-parallax": "^3.3.1"
And if I downgrade to 1.4.0 I get this:
Moralis.onChainChanged is not a function
The above error occurred in the component:
at MoralisProvider (webpack-internal:///./node_modules/react-moralis/lib/index.esm.js:4299:23)
at MyApp (webpack-internal:///./pages/_app.js:32:24)
at ErrorBoundary (webpack-internal:///./node_modules/next/dist/compiled/@next/react-dev-overlay/dist/client.js:8:20740)
at ReactDevOverlay (webpack-internal:///./node_modules/next/dist/compiled/@next/react-dev-overlay/dist/client.js:8:23547)
at Container (webpack-internal:///./node_modules/next/dist/client/index.js:110:5)
at AppContainer (webpack-internal:///./node_modules/next/dist/client/index.js:702:24)
at Root (webpack-internal:///./node_modules/next/dist/client/index.js:853:26)
React will try to recreate this component tree from scratch using the error boundary you provided, ErrorBoundary.
Uncaught (in promise) Moralis SDK Core Error: [C0013] Key “serverUrl” is unregistered. Have you registered all required modules?
Thanks,
Benjamin.