Skip to content

Support for next 16? #4830

@florianmartens

Description

@florianmartens

Nextra has incompatibilities with either next 16 or Turbopack.

After upgrading, I'm seeing this error on every nextra page.

 ⨯ TypeError: createContext only works in Client Components. Add the "use client" directive at the top of the file to use it. Read more: https://nextjs.org/docs/messages/context-in-server-component
    at module evaluation (src/app/resources/documentation/page.mdx.tsx:3:1)
    at module evaluation (.next/dev/server/chunks/ssr/[root-of-the-server]__5f50c1a9._.js:1016:47)
  1 | /*@jsxRuntime automatic*/
  2 | /*@jsxImportSource react*/
> 3 | import {HOC_MDXWrapper} from "nextra/setup-page";
    | ^
  4 | import {useMDXComponents as _provideComponents} from "next-mdx-import-source-file";
  5 | export const metadata = {
  6 |   "title": "Pipe0 Docs | Introduction", {
  page: '/resources/documentation',
  digest: '1503878931'

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions