Skip to content

Lesson 10: TypeError: createContext only works in Client Components #5442

Closed Answered by alymurtazamemon
Jatinkkalra asked this question in Q&A
Discussion options

You must be logged in to vote

@Jatinkkalra I check your code as well as I worked on the fresh project and realized that it is not the issue with your code instead the import { MoralisProvider } from "react-moralis"; is not compatible with next.js 13.

I would recommend you to learn on the same old version of next.js because some of the web3 dependencies are still supporting older versions and later you can move to the latest version when you start working on your own projects.

you can use this command to create the same version of the project which Partick used. npx create-next-app@12.1.5

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@Jatinkkalra
Comment options

@alymurtazamemon
Comment options

Answer selected by Jatinkkalra
@Jatinkkalra
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants