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

Can't resolve 'cldr' in React js app #915

Open
florinlazau opened this issue Feb 11, 2021 · 2 comments
Open

Can't resolve 'cldr' in React js app #915

florinlazau opened this issue Feb 11, 2021 · 2 comments

Comments

@florinlazau
Copy link

Hello,

I am developing a React JS application and I want to use Globalize.

My package.json:

    "cldr-data": "36.0.0",
    "globalize": "1.6.0",
    "iana-tz-data": "2019.1.0",

I have a basic usage:

var Globalize = require('globalize');

Globalize.load(require('cldr-data').entireSupplemental());
Globalize.load(require('cldr-data').entireMainFor('en', 'es'));

The problem is that I get this error:

./node_modules/globalize/dist/globalize.js
Module not found: Can't resolve 'cldr' in '/proj_path/node_modules/globalize/dist'

Am I doing something wrong?

Thanks,
Florin

@florinlazau
Copy link
Author

Hey guys,

Any updates here? Any input here would be much appreciated.

Thanks,
Florin

@konstantinbrazhnik
Copy link

@florinlazau I don't have a fix for this, but setting globalizing back to an older version fixed this for me. For example:

    ...
    "globalize": "^0.1.1"
    ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants