Uploaded image for project: 'Hybrid Cloud Console'
  1. Hybrid Cloud Console
  2. RHCLOUD-24738

Investigate CSS and HTML chunk errors when building HCC plugins with the dynamic plugin SDK

XMLWordPrintable

    • False
    • Hide

      None

      Show
      None
    • False
    • Unset
    • No
    • Plat-Ex Sprint 61

      There is an issue with the mini-css-extract-plugin and @openshift/dynamic-plugin-sdk-webpack. The compilation hangs when these two are used together when building HCC plugins using the SDK. We suspect this will also occur with the HTML webpack plugin.

      We suspect the culprit is non-JS assets being pulled into `findPluginChunks`:
      https://github.com/openshift/dynamic-plugin-sdk/blob/main/packages/lib-webpack/src/webpack/ValidateCompilationPlugin.ts#L9 

      Example silent error: 
      ERROR in ./node_modules/@data-driven-forms/pf4-component-mapper/esm/select/select/select-styles.css
      Module build failed (from ./node_modules/mini-css-extract-plugin/dist/loader.js):
      Error: Cannot find entry chunk sources

              vszocs@redhat.com Vojtech Szocs
              mmarosi123 Martin Marosi
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: