Hello, first of all thanks for your attention,
Im trying to setup react-moralis with nextjs.
well, I wrap the entire app with MoralisProvider as docs says
import { MoralisProvider } from "react-moralis";
import '../styles/globals.css'
function MyApp({ Component, pageProps }) {
return (
<MoralisProvider appId={process.env.MORALIS_APP_ID} serverUrl={process.env.MORALIS_SERVER_URL}>
<Component {...pageProps} />
</MoralisProvider>
)
}
export default MyApp
when I start the development server the console throw this error:
error - ./node_modules/@elrondnetwork/bls-wasm/bls_c.js:9:1108
Module not found: Can't resolve 'fs'
null
that is my package.json:
"name": "imaginft",
"version": "0.1.0",
"private": true,
"scripts": {
"dev": "next dev",
"build": "next build",
"start": "next start"
},
"browser": {
"fs": false
},
"dependencies": {
"moralis": "^0.0.16",
"next": "10.1.3",
"react": "17.0.2",
"react-dom": "17.0.2",
"react-moralis": "^0.1.1"
}
}
I added the entry browser for fs but seems not to work.
Thanks a million