Skip to content

Uncaught Error: Invalid or unexpected token #85

@braswelljr

Description

@braswelljr

SyntaxError: Invalid or unexpected token
[1] at new Function ()
[1] at Component (src\components\mdx.tsx:166:36)
[1] 164 | export function Mdx({ code, className }: MdxProps) {
[1] 165 | console.log(code);
[1] > 166 | const Component = useMDXComponent(code);

Getting error when using hook happens on version ^0.5.8 for next 15.3.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions