Hey guys,
I’m trying to deploy my nextJS site on vercel and I keep getting an error after building is finished.
Everything works locally and builds without errors
here’s the error I’m getting
The thing that stumps me is I only use ‘useMoralis’ twice in my code
import { useMoralis, useNFTBalances, useNativeBalance } from "react-moralis";
// and later on
const { authenticate, isAuthenticated, logout, enableWeb3, Moralis } =
useMoralis();
and here’s my creation
<MoralisProvider
appId={process.env.NEXT_PUBLIC_APP_ID}
serverUrl={process.env.NEXT_PUBLIC_SERVER_URL}
>
<Web3Block />
</MoralisProvider>
All environment variables are properly set locally and on vercel. I used the same solution in another project.
I honestly have no idea whats going on