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

Missing dependency warning error in console UI dev env

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Normal Normal
    • None
    • 4.16.0
    • Dev Console
    • Low
    • No
    • ODC Sprint 3257
    • 1
    • Rejected
    • False
    • Hide

      None

      Show
      None
    • Release Note Not Required
    • In Progress

      Description of problem: Missing dependency warning error in console UI dev env

      [yapei@yapei-mac frontend (master)]$ yarn lint --fix
      yarn run v1.22.15
      $ NODE_OPTIONS=--max-old-space-size=4096 yarn eslint . --fix
      $ eslint --ext .js,.jsx,.ts,.tsx,.json,.gql,.graphql --color . --fix/Users/yapei/go/src/github.com/openshift/console/frontend/packages/console-shared/src/components/close-button/CloseButton.tsx
      2:46 error Unable to resolve path to module '@patternfly/react-component-groups' import/no-unresolved/Users/yapei/go/src/github.com/openshift/console/frontend/public/components/resource-dropdown.tsx
      109:6 warning React Hook React.useEffect has missing dependencies: 'clearItems' and 'recentSelected'. Either include them or remove the dependency array react-hooks/exhaustive-depsâś– 2 problems (1 error, 1 warning)error Command failed with exit code 1.
      info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
      error Command failed with exit code 1.
      info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

      [yapei@yapei-mac frontend (master)]$ git log -1
      commit 9478885a967f633ddc327ade1c0d552094db418b (HEAD -> master, origin/release-4.17, origin/release-4.16, origin/master, origin/HEAD)
      Merge: 3e708b7df9 c3d89c5798
      Author: openshift-merge-bot[bot] <148852131+openshift-merge-bot[bot]@users.noreply.github.com>
      Date: Mon Mar 18 16:33:11 2024 +0000 Merge pull request #13665 from cyril-ui-developer/add-locales-support-fr-es

              avik6028 Avik Kundu
              cajieh Cyril Ajieh
              YaDan Pei YaDan Pei
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: