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

Cannot build: Getting a lot of "Cannot resolve module 'cldr...'" errors #56

Open
zachschultz opened this issue May 17, 2017 · 5 comments

Comments

@zachschultz
Copy link

I am trying to build using Webpack and this plugin with config as follows:

new GlobalizePlugin({
  production: process.env.NODE_ENV === 'production',
  developmentLocale: 'es',
  supportedLocales: [ 'en', 'de', 'es' ],
  output: 'i18n/[locale].[hash].js'
}),

and in my code all I'm doing is var Globalize = require('globalize');

During the build process I get a huge amount of errors, like:

resolve 'file' cldr in /Users/zach/dev/entry-point/code/node_modules
  resolve file
    /Users/zach/dev/entry-point/code/node_modules/cldr doesn't exist
    /Users/zach/dev/entry-point/code/node_modules/cldr.webpack.js doesn't exist
    /Users/zach/dev/entry-point/code/node_modules/cldr.web.js doesn't exist
    /Users/zach/dev/entry-point/code/node_modules/cldr.js doesn't exist
    /Users/zach/dev/entry-point/code/node_modules/cldr.json doesn't exist

Looking at the Globalize repo issues, it seems like this plugin was created to fix the issues I'm having, but for some reason it's not working for me.

@rxaviers
Copy link
Owner

Please, can you run this example locally? If so, how different is this from what you're using? Which webpack version are you using?

@jan0991
Copy link

jan0991 commented Aug 19, 2017

Same problem with webpack 2.4.1.

@ni3galave
Copy link

I am also getting similar issue even after trying this example with webpack version : 2.6.1

Can't resolve 'cldr/supplemental'

@teddy-dubal
Copy link

Hi ,
An anwser for this 'Can't resolve 'cldr/supplemental'' ??

@FrederickRies
Copy link

Try to add : "cldr-data": ">=25" as a dependency in your package.json file

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

6 participants