+
Skip to content

Missing FontAwesome Modules when using core-ui as dependency #300

@Cuervino

Description

@Cuervino

Component:
Icon.component.js

What happened:
Missing 2 modules when core-ui used as a dependency

  • @fortawesome/react-fontawesome
  • @fortawesome/fontawesome-svg-core
ERROR in ./node_modules/@fortawesome/react-fontawesome/index.es.js
Module not found: Error: Can't resolve '@fortawesome/fontawesome-svg-core' in 'git\zenko-ui\node_modules\@fortawesome\react-fontawesome'
 @ ./node_modules/@fortawesome/react-fontawesome/index.es.js 1:0-64 263:6-11 264:11-16 318:83-88 320:21-25
 @ ./node_modules/@scality/core-ui/dist/components/icon/Icon.component.js
 @ ./node_modules/@scality/core-ui/dist/index.js
 @ ./src/react/ZenkoUI.js
 @ ./src/react/App.js

Solved when I installed those 2 modules.

Note that then, the loaded assets size could increase too much.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingpriority:mediumMedium priority issues, should only be postponed if no other option

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载