globalizejs / globalize

A JavaScript library for internationalization and localization that leverages the official Unicode CLDR JSON data
https://globalizejs.com
MIT License
4.8k stars 603 forks source link

Get error message when I call webpack. #790

Closed IngoManthey closed 6 years ago

IngoManthey commented 6 years ago

If have installed: "globalize": "^1.3.0", When I call webpack I get the following error messages:

ERROR in ./ClientApp/app/services/app-translation.service.ts Module not found: Error: Can't resolve 'cldr-data/supplemental/weekData.json' in 'C:\Users\Ingo\source\repos\TipWebProject2\TipWeb\ClientApp\app\services' @ ./ClientApp/app/services/app-translation.service.ts 30:666-713 @ ./ClientApp/app/app.module.ts @ ./ClientApp/boot.browser.ts

my code: const localization = require('devextreme/localization'); const Globalize = require('globalize'); Globalize.load( require('cldr-data/main/en/ca-gregorian.json'), require('cldr-data/main/en/numbers.json'), require('cldr-data/main/en/currencies.json'),

require('cldr-data/main/de/ca-gregorian.json'), require('cldr-data/main/de/numbers.json'), require('cldr-data/main/de/currencies.json'),

require('cldr-data/main/es/currencies.json'), require('cldr-data/main/es/ca-gregorian.json'), require('cldr-data/main/es/numbers.json'),

require('cldr-data/main/pt/currencies.json'), require('cldr-data/main/pt/ca-gregorian.json'), require('cldr-data/main/pt/numbers.json'),

require('cldr-data/supplemental/likelySubtags.json'), require('cldr-data/supplemental/timeData.json'), require('cldr-data/supplemental/weekData.json'), require('cldr-data/supplemental/currencyData.json'), require('cldr-data/supplemental/numberingSystems.json') );

what can I do?