Skip to content

What that can be - cannot support async function? #3763

@n4an

Description

@n4an

Environment

nuxt 3

Reproduction


cannot support async function
SyntaxError: cannot support async function
    at <parse> (:0)
    at createCompileError (/home/web/node_modules/@intlify/message-compiler/dist/message-compiler.mjs:77:23)
    at resolveLocale (/home/web/node_modules/@intlify/core-base/dist/core-base.mjs:323:23)
    at translate (/home/web/node_modules/@intlify/core-base/dist/core-base.mjs:1486:20)
    at translate$1 (/home/web/node_modules/@intlify/h3/dist/index.mjs:51:28)
    at processTicksAndRejections (native:7:39)

Describe the bug

cannot support async function when try to translate on server in api routes

Additional context

No response

Logs

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions