Skip to content

await is only valid in async functions. #369

@Vibrant275

Description

@Vibrant275

await is only valid in async functions and the top level bodies of modules

lib/mdx-content.tsx (12:16) @ useMDXComponent

10 |
11 | const useMDXComponent = (code: string) => {

12 | const fn = new Function(code)

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