Skip to content

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

@zachschultz

Description

@zachschultz

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions