Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
AchoArnold opened this issue Jun 19, 2022 · 1 comment
Closed

Comments

@AchoArnold
Copy link

AchoArnold commented Jun 19, 2022

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

@rchl
Copy link
Collaborator

rchl commented Mar 13, 2023

Intl.DisplayNames was not supported in Typescript 4.2 that was pinned until now.

It will work from the next release which will include #563.

@rchl rchl closed this as completed Mar 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants