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

intl-numberformat is using named exports from JSON modules (webpack5 incompatibility) #2417

Closed
sppatel opened this issue Dec 17, 2020 · 0 comments
Labels

Comments

@sppatel
Copy link

sppatel commented Dec 17, 2020

Which package?
intl-numberformat

Describe the bug
Webpack 5 throws a warning if it encounters any named exports from JSON files as described in the webpack 5 migration guide.

https://webpack.js.org/migrate/5/#cleanup-the-code

Using named exports from JSON modules: this is not supported by the new specification and you will get a warning. Instead of import { version } from './package.json'; console.log(version); use import package from './package.json'; console.log(package.version)

To Reproduce
Steps to reproduce the behavior:

  1. Go to
    import {names as numberingSystemNames} from './data/numbering-systems.json';
  2. The import here is not supported by the new specification as indicated above.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant