Comments (6)
https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c
from os-locale.
The error says it all.
from os-locale.
node version: 14.17.4
from os-locale.
Hi, @sindresorhus
Actually, I use import {osLocale} from 'os-locale'; to import the package, but I still got this error message.
That's why I post this ticket.
I tried all the recommended method, but it will cause other error.
from os-locale.
This is not really the place to ask for ESM support. This package correctly implements ESM. Please ensure your project is fully ESM (just using import statements does not mean it's native ESM). The above link has a guide on how to make your project ESM.
from os-locale.
Thank you for your reply. @sindresorhus
I will try it in my project.
from os-locale.
Related Issues (20)
- Bad locale resolution based on POSIX variables HOT 3
- Can not get Locale in Mac with locale zh_ch.utf8 HOT 5
- Switch to a Promise interface HOT 4
- Custom defaultLocale like en instead of en_US? HOT 2
- [feature request] return system encoding HOT 3
- TypeError HOT 2
- Generating invalid locale
- After upgrade electron to 2.0.3 os-locale is not working HOT 1
- Use dash instead of underscore to be standard compliant HOT 2
- Release v2.1.1 with mem 4.0.0 HOT 1
- os-locale calls wmic with no extension and without explicit path HOT 6
- Security issue
- yarn test causing "Error while loading rule '@typescript-eslint/await-thenable'" HOT 1
- Module build failed: UnhandledSchemeError: Reading from "node:child_process" is not handled by plugins (Unhandled scheme) HOT 2
- support Apple Languages
- Locale detection for macOS seems broken HOT 1
- wmic os get locale command failing HOT 2
- Errors exec-ing locale and defaults
- frightening warnings being displayed when detecting locale HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from os-locale.