- The Console application now uses React Router v6 code internally. Plugins that only target OpenShift
Console 4.15 or later should fully upgrade to React Router v6 via
react-router-dom-v5-compatmodule.
Plugins that only target OpenShift Console 4.15 and newer should upgrade to PatternFly 5.x or newer to take advantage of PatternFly dynamic modules.
Any PatternFly related code should be imported via the corresponding package index:
// Do _not_ do this:
import { MonitoringIcon } from '@patternfly/react-icons/dist/esm/icons/monitoring-icon';
// Instead, do this:
import { MonitoringIcon } from '@patternfly/react-icons';Newer versions of @openshift-console/dynamic-plugin-sdk-webpack package include support for automatic
detection and sharing of individual PatternFly 5+ dynamic modules.
Plugins using PatternFly 5.x and newer should avoid non-index imports, for example:
// Do _not_ do this:
import { MonitoringIcon } from '@patternfly/react-icons/dist/esm/icons/monitoring-icon';
// Instead, do this:
import { MonitoringIcon } from '@patternfly/react-icons';