| name | pf-import-checker |
| description | Audit and fix invalid PatternFly import paths across packages. Use when imports fail, modules are unresolved, or after upgrading PatternFly versions. |
PF Import Checker
Find and fix invalid PatternFly import patterns.
Before proposing import fixes, use the PatternFly MCP server to confirm current package paths and examples from the latest docs.
What to check
- Charts imported from
@patternfly/react-charts root (invalid for Victory components).
- Chatbot imports not using
@patternfly/chatbot/dist/dynamic/*.
- Component-group imports not using
@patternfly/react-component-groups/dist/dynamic/*.
- Missing package CSS imports for features in use.
Validation commands
rg "@patternfly/react-charts['\"]" src
rg "@patternfly/chatbot['\"]" src
rg "@patternfly/react-component-groups['\"]" src
Correct import examples
import { ChartDonut } from "@patternfly/react-charts/victory";
import { Chatbot } from "@patternfly/chatbot/dist/dynamic/Chatbot";
import { BulkSelect } from "@patternfly/react-component-groups/dist/dynamic/BulkSelect";
Output format
Provide:
- offending file paths
- exact import lines to replace
- corrected import lines
- any CSS import additions needed