Current Best Practice of React Moralis

What is the current best practice of using Moralis in React, that works and stable?
I have the current setup but keep throwing me a lot of error

    "moralis": "^2.0.1",
    "react": "^18.2.0",
    "react-dom": "^18.2.0",
    "react-moralis": "^1.4.1",
    "react-router": "^6.3.0",
    "react-router-dom": "^6.3.0",
    "react-scripts": "5.0.1",

And I have spend a few hours trying changing the react-script to v4, using moralis 1.3x, have not yet really success making it works

receive the error of
ERROR in ./node_modules/react-moralis/lib/index.esm.js 4:0-30 etc error

probably you don’t want to use version 2 or Moralis SDK

what version I should use? the 1.11.0 ?

that looks like a version that should work

No luck of that for 1.11.0, having error of
ERROR in ./node_modules/react-moralis/lib/index.esm.js 4:0-30
Module not found: Error: Can’t resolve β€˜http’ …

is there any specific version of react and moralis that is stable?

maybe the other dependencies cause some issues, like react-scripts 5 or react 18

any recommendation for which script is working and which react version is working?
I have tried changed the script from v5 to v4 and react version 18 and 17, it gave me more errors …

I’m not expert in react, probably someone else will be able to provide that info

ok let me jump over to discord for help

1 Like