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

Using the locale .json files directly is not possible anymore #119

Closed
alappe opened this issue Jun 18, 2021 · 1 comment
Closed

Using the locale .json files directly is not possible anymore #119

alappe opened this issue Jun 18, 2021 · 1 comment

Comments

@alappe
Copy link

alappe commented Jun 18, 2021

Hello,

updating my dependencies to v3+ I saw that since d5523ac I get

ERROR in file.js 33:19-62
Module not found: Error: Package path ./locale/en-US.json is not exported from package node_modules/d3-format (see exports field in node_modules/d3-format/package.json)

from webpack when using e.g. import * as numformatEn from 'd3-format/locale/en-US.json'; to import the json files directly.

Has this change been intentional and is there another way except loading the files from e.g. a CDN?

Best regards
Andreas

@alappe
Copy link
Author

alappe commented Jun 18, 2021

Meh, nevermind… #118 fixes it.

@alappe alappe closed this as completed Jun 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant