Skip to content
This repository has been archived by the owner on May 17, 2019. It is now read-only.

Cannot build fusion app when attempting to use globalize #659

Open
koulmomo opened this issue Jan 7, 2019 · 0 comments
Open

Cannot build fusion app when attempting to use globalize #659

koulmomo opened this issue Jan 7, 2019 · 0 comments

Comments

@koulmomo
Copy link

koulmomo commented Jan 7, 2019

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: globalizejs/globalize#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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant