Skip to content

@next/mdx fails when using remarkPlugins #80752

Closed Answered by icyJoseph
realtechnerd asked this question in App Router

You must be logged in to vote

Hi,

You are likely running with --turbopack.

In your package.json file, you'll see:

  "scripts": {
    "dev": "next dev --turbopack",
    "build": "next build",
    "start": "next start",
    "lint": "next lint"
  },

You can remove the --turbopack, and it'll work. You should probably stick with this for now.

Another way to get --turbopack to work, albeit experimentally, is with mdxRs: true - depending on what you are trying to do, it might be acceptable, although, other things might break.

Replies: 3 comments 3 replies

You must be logged in to vote
1 reply
@realtechnerd

You must be logged in to vote
1 reply
@realtechnerd

You must be logged in to vote
1 reply
@realtechnerd

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