External contributors cannot install packages without our FontAwesome Pro key #74
Labels
Complexity: HIGH
This issue may require in-depth knowledge of module features and require significant testing
Module: UI
This issue pertains to the apps/ui module
Priority: MED
This issue isn't critical or security-related but is holding back other issues or efficiency.
Type: Bug
Something isn't working
Describe the bug
If a user attempts to run
npm i
in the root directory or/apps/ui
directory, the installation will fail due to being unable to find the FontAwesome Pro icons packages. This is because they're stored in another package registry that requires a Pro key.To Reproduce
Steps to reproduce the behavior:
.npmrc
file containing the FontAwesome registry informationnpm i
in the root of the projectExpected behavior
Installation should complete, and when the packages should only be imported if they are present. If using a Pro icon without Pro icons installed, the icon simply won't be visible on your device. It will still be visible on deployment.
Additional context
This may require dynamic imports, which may be a problem for tree shaking. FontAwesome is a large set of libraries (62MB for all of them currently installed). It is our largest dependency for the UI. Tree shaking may not be as critical if we have SSR, however I'm not quite sure how that works.
A temporary workaround is to remove the packages from the
package.json
, but this only works if they are not running the UI.The text was updated successfully, but these errors were encountered: