Uploaded image for project: 'OpenShift Console'
  1. OpenShift Console
  2. CONSOLE-4752

Resolve type errors after enabling `strictNullChecks` in console/frontend

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • None
    • None
    • None
    • None
    • None
    • OCP Console - Sprint 277

      Enable `strictNullChecks` in the console/frontend and fix all build errors. This is mandatory for the i18next >22 version upgrade and might be required for other console dependencies in the future. And in addition, this will further help prevent unexpected runtime errors caused by null or undefined values.

      Total Errors at the start of Spike: 13,448

      Progress so far
      Remaining errors about: 10,500 

      A.C.

      • Create an inventory of effected static plugins.
      • Reach out to the owners to carry out the fix (TBD - lets discuss this item once we have a clear picture how to move forward)
      • This command can be used to get the total number of TypeScript errors when `strictNullChecks` is enabled:

                  `npx tsc --noEmit | wc -l`

      List number of errors for every file in the current directory: npx tsc --noEmit

       

              rh-ee-kragarwa Krish Agarwal
              rh-ee-kragarwa Krish Agarwal
              None
              None
              None
              None
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: