Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Module not found: Error: Can't resolve '@fortawesome/pro-solid-svg-icons/faLock' in .... #522

Open
barrychapman opened this issue Aug 15, 2022 · 0 comments

Comments

@barrychapman
Copy link

Describe the bug
Cannot import an icon:

Starting the development server...
WebpackDevServerUtils.js:185Failed to compile.
WebpackDevServerUtils.js:186Module not found: Error: Can't resolve '@fortawesome/pro-solid-svg-icons/faLock' in 'D:\Projects\ZEVSociety\src\webapp\src\layouts\authentication\sign-in\illustration'
setupHooks.js:195assets by info 18.1 MiB [immutable]
  assets by path static/media/*.jpg 14.5 MiB 28 assets
  assets by path static/media/*.jpeg 2.53 MiB 26 assets
  assets by path static/media/*.png 1.05 MiB

Reproducible test case

            <FontAwesomeIcon icon={solid('lock')} /> log in

Expected behavior
import icon as expected

Desktop (please complete the following information):

  • Browser chrome
  • Version latest

Additional context
did a delete of yarn.lock and reran install

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

No branches or pull requests

1 participant