I keep getting this error. Any ideas why?
Attempted import error: ‘useNFTBalances’ is not exported from ‘react-moralis’.
Hello @Yomoo, I had the same error then I installed it by yarn add react-moralis. But this time I get that:
Unhandled Rejection (TypeError): Moralis.current.start is not a function
(anonymous function)
C:/xampp/htdocs/src/hooks/core/useMoralis/_useMoralisInit.ts:71
...
and my package.json:
{
"name": "market-frontend",
"version": "0.1.0",
"private": true,
"dependencies": {
"@testing-library/jest-dom": "^5.11.4",
"@testing-library/react": "^11.1.0",
"@testing-library/user-event": "^12.1.10",
"@walletconnect/web3-provider": "^1.6.6",
"moralis": "^0.0.69",
"node-sass": "^6.0.1",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"react-moralis": "^0.3.1",
"react-router-dom": "^5.3.0",
"react-scripts": "4.0.3",
"sass": "^1.43.3",
"uikit": "^3.7.5",
"uikit-react": "^3.1.2",
"web-vitals": "^1.0.1"
...
could that be relevant with a package in here?
Thanks in advance
this looks like a very old version of Moralis SDK
1 Like
I had this issue fixed that day but yarn upgrade, but later I noticed that the package.json doesn’t get updated by using ‘yarn upgrade’.