fusion-cli icon indicating copy to clipboard operation
fusion-cli copied to clipboard

Cannot build fusion app when attempting to use globalize

Open koulmomo opened this issue 7 years ago • 0 comments

If you follow the globalizejs instructions and attempt to use currency formatting module (though this breaks with ANY API you attempt to use as it breaks on import and/or require).

Type of issue

[Bug] - seeing as the docs specifically call out globalize as suggested library to use with fusion apps, I think it's ok to classify this as a 🐛.

Description

Google-foo led me to the following issue: https://github.com/globalizejs/globalize/issues/603.

The recommendation is to either add a bunch of webpack aliases or use https://github.com/rxaviers/globalize-webpack-plugin/.

Current behavior

On import/require of globalize, you get the following error:

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

Expected behavior

We should either be able to use globalize or remove it as suggestion in the fusionjs docs and using an alternative like https://formatjs.io/ instead.

Your environment

  • fusion-cli version: 1.13.1

  • Node.js version (node --version): v8.12.0

  • npm version (npm --version): 6.4.1

  • yarn version: 1.10.1

  • Operating System: Mac OS Mojave

koulmomo avatar Jan 07 '19 01:01 koulmomo