Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MDXContentProps type error fails Next.js build #175

Open
vladmoroz opened this issue May 31, 2022 · 0 comments
Open

MDXContentProps type error fails Next.js build #175

vladmoroz opened this issue May 31, 2022 · 0 comments

Comments

@vladmoroz
Copy link
Contributor

  • mdx-bundler version: 9.0.1
  • node version: 14.17.5
  • npm version: 6.14.14

Relevant code or config:

import { bundleMDX } from 'mdx-bundler';

What you did:

next build

What happened:

Failed to compile.

../../common/temp/node_modules/.pnpm/mdx-bundler@9.0.1_esbuild@0.14.29/node_modules/mdx-bundler/dist/types.d.ts:197:36
Type error: Cannot find name 'MDXContentProps'.

  195 |   Frontmatter = {[key: string]: unknown},
  196 | > = {
> 197 |   default: React.FunctionComponent<MDXContentProps>
      |                                    ^
  198 |   frontmatter: Frontmatter
  199 | } & ExportObject
  200 | 

Problem description:

MDXContentProps type is missing from dist/types.d.ts, which fails the Next.js build in my case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant