Kubevirt dynamic plugin [1] currently depends on Console core, internal and webpack SDK packages. [1] https://github.com/kubevirt-ui/kubevirt-plugin The kubevirt-internal one is not needed anymore and should be removed.
This bug has been verified on payload 4.11.0-0.nightly-2022-03-20-160505 Verification step: 1. Git clone console repo 2. yarn install && yarn build on ./console/frontend 3. yarn install && yarn run build on ./console/dynamic-demo-plugin 4. Verify if install and build the frontend and dyanmic-demo-plugin without any error, all process is passed 5. Use the shared YAML file on https://github.com/openshift/console/blob/master/dynamic-demo-plugin/oc-manifest.yaml to create services and console plugin resources on console 6. Enable the plugin on Cluster Setting -> Configuation tab -> choose console(operator.openshif.io) and wait for some time. Refresh the page 7. Check if the demo plugin related part is working well on nav menu on Administrator and developer perspective view Result: 4. dynamic-demo-plugin and frontend are built without any error, no type errors found. The response of dyanmic-demo-plugin: modules by path *.0 (singleton) 84 bytes consume shared module (default) react-router-dom@=5.2.0 (singleton) 42 bytes [built] [code generated] consume shared module (default) react@^16.8.0 || ^17.0.0 (singleton) 42 bytes [built] [code generated] + 4 modules webpack 5.68.0 compiled successfully in 8335 ms Done in 10.26s. The response of frontend: [19] ./node_modules/monaco-editor/esm/vs/editor/common/services/editorSimpleWorker.js 25.8 KiB {0} [built] [20] ./node_modules/monaco-editor/esm/vs/base/common/arrays.js 7.5 KiB {0} [built] [22] ./node_modules/monaco-editor/esm/vs/editor/common/diff/diffComputer.js 21 KiB {0} [built] [34] ./node_modules/monaco-editor/esm/vs/editor/editor.worker.js 1.07 KiB {0} [built] + 23 hidden modules Done in 265.04s. 7. The function is working well, changes of remove kubevirt-internal is not impact the plugin. User is able to navigate to Demo Plugin -> K8s API page, the sample like k8sCreate, k8sGet, k8sPathc is still shown and worked on page.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (Important: OpenShift Container Platform 4.11.0 bug fix and security update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2022:5069