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

Update Console dynamic plugin SDK webpack dependency

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • 4.16
    • Management Console
    • None
    • None
    • False
    • Hide

      None

      Show
      None

      Description of problem:

      webpack dependency in @openshift-console/dynamic-plugin-sdk-webpack package is listed as "5.75.0" i.e. not a semver range but an exact version.

      If a plugin project updates its webpack dependency to a newer version, it may cause the package manager to not hoist node_modules/@openshift/dynamic-plugin-sdk-webpack (which is a dependency of the ☝️ package) which then causes problems during the webpack build.

      Steps to Reproduce:

      1. git clone https://github.com/kubevirt-ui/kubevirt-plugin
      2. modify webpack dependency in package.json to a newer version
      3. yarn install # missing node_modules/@openshift/dynamic-plugin-sdk-webpack
      4. yarn build   # results in build errors due to ^^

      Actual results:

      Build errors due to missing node_modules/@openshift/dynamic-plugin-sdk-webpack

      Expected results:

      No build errors

       

              jhadvig@redhat.com Jakub Hadvig
              vszocs@redhat.com Vojtech Szocs
              YaDan Pei YaDan Pei
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated: