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

RangeError: Incorrect locale information provided #648

Closed
skobes opened this issue Dec 26, 2024 · 1 comment
Closed

RangeError: Incorrect locale information provided #648

skobes opened this issue Dec 26, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@skobes
Copy link

skobes commented Dec 26, 2024

Describe the bug

npx create-vue prints RangeError: Incorrect locale information provided at startup, and then proceeds normally.

Expected behavior

No errors printed.

How to reproduce

Observed on Ubuntu 22.04.5 under WSL 2:

~$ npx create-vue
Need to install the following packages:
create-vue@3.13.0
Ok to proceed? (y)

RangeError: Incorrect locale information provided


Vue.js - The Progressive JavaScript Framework

✖ Project name: … vue-project

I suspect it is related to $LANG being C.UTF-8 (WSL default?), causing a call to Intl.getCanonicalLocales("C") in #450.

@skobes skobes added the bug Something isn't working label Dec 26, 2024
@cexbrayat
Copy link
Member

Yes, I suppose it is related to getCanonicalLocales.
@btea chose to log the error and continue normally and I think it's fine.
Maybe the error could display the locale as well.
Feel free to open a PR to improve this if you feel this is important, contributions are most welcome 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants