lesson:10 NoMoralisContextProviderError: Make sure to only call useMoralis within a <MoralisProvider> #2605
-
import { useMoralis } from "react-moralis"; function Header(){
{await enableWeb3()}}>connect
)
}
export default Header; why im getting this error..whenever i am loading my localhost it is showing the same error |
Beta Was this translation helpful? Give feedback.
Answered by
alymurtazamemon
Sep 15, 2022
Replies: 1 comment 2 replies
-
@DANIA001 Make sure you wrapped your component in a MoralisProvide in |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
alymurtazamemon
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@DANIA001 Make sure you wrapped your component in a MoralisProvide in
_app.js
andinitializingMount
is false