Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-34683

Illogical shared module warnings when building Kubevirt dynamic plugin

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Undefined Undefined
    • None
    • 4.16.0
    • Management Console
    • None
    • No
    • False
    • Hide

      None

      Show
      None
    • N/A
    • Release Note Not Required
    • In Progress

      Description of problem:

      When building https://github.com/kubevirt-ui/kubevirt-plugin from its release-4.16 branch, following warnings are issued during the webpack build:

      WARNING in shared module react
      
      No required version specified and unable to automatically determine one. Unable to find required version for "react" in description file (/home/vszocs/work/kubevirt-plugin/node_modules/react/package.json). It need to be in dependencies, devDependencies or peerDependencies.
      

      These warnings should not appear during the plugin build.

      Root cause seems to be webpack module federation code which attempts to auto-detect actual build version of shared modules, but this code seems to be unreliable and warnings such as the one above are anything but helpful.

      How reproducible: always on kubevirt-plugin branch release-4.16

      Steps to Reproduce:

      1. git clone https://github.com/kubevirt-ui/kubevirt-plugin
      2. cd kubevirt-plugin
      3. yarn && yarn dev
      

              vszocs@redhat.com Vojtech Szocs
              vszocs@redhat.com Vojtech Szocs
              YaDan Pei YaDan Pei
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: