Skip to content

TS2339: Property 'DisplayNames' does not exist on type 'typeof Intl'. #551

Closed
@AchoArnold

Description

@AchoArnold

Describe the bug
I can't compile a nuxt.js type script project which uses the DisplayNames of Intl I get the error message TS2339: Property 'DisplayNames' does not exist on type 'typeof Intl'.

To Reproduce
Steps to reproduce the behavior:

  • Add this script to any nuxt.js typescript project
new Intl.DisplayNames(undefined, { type: 'region' })

Expected behavior
The code should compile to javascript

Instead, I get the error

TS2339: Property 'DisplayNames' does not exist on type 'typeof Intl'.

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions