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

Upgrading to 2.0.2 - Failed to Compile - Module not found #36

Closed
citylife4 opened this issue Mar 16, 2021 · 2 comments
Closed

Upgrading to 2.0.2 - Failed to Compile - Module not found #36

citylife4 opened this issue Mar 16, 2021 · 2 comments

Comments

@citylife4
Copy link

Hello,

I was following this tutorial that help me set up i18next-icu on my react app.
https://medium.com/@danduan/translating-react-apps-using-i18next-d2f78bc87314

It was working fine, but when updating from 1.4.2 to 2.0.2 the following error started appearing:

./src/i18nextConf.js
Module not found: Can't resolve 'i18next-icu/locale-data/en' in '/home/valverde/dev/sabores-ecommerce/frontend/src'

Is there something that needs to be changed on the apps to upgrade to 2.0.2?

Thanks for the help

@jamuhl
Copy link
Member

jamuhl commented Mar 17, 2021

i guess loading locale-data is no longer needed as all major browsers provide the Intl API

@citylife4
Copy link
Author

Indeed removing locale-data does not impact the app itself.
Thanks for the help

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