Skip to content

TypeError: (0 , import_react14.createContext) is not a function using NextJS13 #1972

Answered by calebpdx
xdmarttt asked this question in Help
Discussion options

You must be logged in to vote

I created a new project using Next13 + React18.

Unfortunately, I encountered this problem:

I tried some possible solution that can here #681 but still not working.

You have to make it a client component for it to work within the app directory.

Add "use client";

To the first line of your component's file and you'll be up and running in no time!

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@dylpckl
Comment options

Answer selected by xdmarttt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
3 participants