8000 Using the locale .json files directly is not possible anymore · Issue #119 · d3/d3-format · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Using the locale .json files directly is not possible anymore #119
Closed
@alappe

Description

@alappe

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

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

      0