You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This snippet however doesn't work with all icons as some of the icons contain upper case characters in the name. The failing icons are coming from customIcons.js. For example pathMissing icon.
How do you reproduce the problem?
Create a new patternfly based react project.
Create a source file with the following import: import { PathMissingIcon } from '@patternfly/react-icons';
Add the suggested plugin snippet to your babel.config.js
Build your project.
Error: ModuleNotFoundError: Module not found: Error: Can't resolve '@patternfly/react-icons/dist/js/icons/path-missing-icon' in ...
Expected behavior
Update code snippet with exceptions or generate icons with consistent case.
Is this issue blocking you?
No
What is your environment?
@patternfly/react-icons: 4.93.6
What is your product and what release date are you targeting?
Open Data Hub
Any other information?
The text was updated successfully, but these errors were encountered:
Describe the problem
Patternfly react-icons README provides the following code snippet to aid with tree shaking:
This snippet however doesn't work with all icons as some of the icons contain upper case characters in the name. The failing icons are coming from customIcons.js. For example
pathMissing
icon.How do you reproduce the problem?
import { PathMissingIcon } from '@patternfly/react-icons';
babel.config.js
Error:
ModuleNotFoundError: Module not found: Error: Can't resolve '@patternfly/react-icons/dist/js/icons/path-missing-icon' in ...
Expected behavior
Update code snippet with exceptions or generate icons with consistent case.
Is this issue blocking you?
No
What is your environment?
What is your product and what release date are you targeting?
Open Data Hub
Any other information?
The text was updated successfully, but these errors were encountered: