Skip to content

react-moralis in Next.js 14  #326

@ali0120

Description

@ali0120

Issue Description

I'm encountering an issue related to the compatibility or initialization of react-moralis in a Next.js 14 project. The error I'm facing is:

  1. Code Snippet:
    In my Next.js 14 project, I'm using the following code to set up MoralisProvider:
<MoralisProvider initializeOnMount={false}>
  <Suspense fallback={<Loading />}>
    {children}
  </Suspense>
</MoralisProvider>

### Return This Error 
Server Error
Error: (0 , react__WEBPACK_IMPORTED_MODULE_0__.createContext) is not a function

This error happened while generating the page. Any console logs will be displayed in the terminal window.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions