Skip to content

Can't use getExtracted() in Promise.all() #2165

@LouisCuvelier

Description

@LouisCuvelier

Description

Hello,

When I'm trying to use getExtracted() inside a Promise.all(), I'm having the following error : ReferenceError: getExtracted is not defined

  const [t] = await Promise.all([getExtracted()]);

But, it works without the promise all :

  const t = await getExtracted();

Not sure if that's a bug or if it's intended.

Verifications

Mandatory reproduction URL

https://github.com/Subrequest/next-intl-repro

Reproduction description

Described above.

Expected behaviour

Previously, I was using getTranslations() in the same way without any issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingunconfirmedNeeds triage.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions