Skip to content

How to import MDX components in .tsx files? #512

@WuChenDi

Description

@WuChenDi

I am using contentlayer and MDX, and I am testing based on the example template shadcn/next-contentlayer.

However, I have encountered an issue and I'm not sure how to correctly import MDX components in .tsx files.

code:
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions