Skip to content

(chore) align and clean up dependencies #520

(chore) align and clean up dependencies

(chore) align and clean up dependencies #520

Re-run triggered January 29, 2024 08:22
Status Failure
Total duration 1m 24s
Artifacts 1

ci.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

6 errors and 11 warnings
build
typescript: command (/home/runner/work/openmrs-form-engine-lib/openmrs-form-engine-lib/) /tmp/xfs-e1fd7a3e/yarn run typescript exited (2)
build
Process completed with exit code 2.
build
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/cache@v3, felixmosh/turborepo-gh-artifacts@v2. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
build: src/components/encounter/ohri-encounter-form.component.tsx#L112
React Hook useMemo has missing dependencies: 'form', 'formSessionDate', 'obsGroupCounter', and 'visit'. Either include them or remove the dependency array
build: src/components/encounter/ohri-encounter-form.component.tsx#L160
React Hook useMemo has a missing dependency: 'form'. Either include it or remove the dependency array
build: src/components/encounter/ohri-encounter-form.component.tsx#L202
React Hook useEffect has a missing dependency: 'encounterLocation'. Either include it or remove the dependency array
build: src/components/encounter/ohri-encounter-form.component.tsx#L296
React Hook useEffect has missing dependencies: 'allInitialValues', 'evalHide', 'flattenedFields', 'form', 'isFieldInitializationComplete', 'patient', 'sessionMode', 'setAllInitialValues', and 'values'. Either include them or remove the dependency array. If 'setAllInitialValues' changes too often, find the parent component that defines it and wrap that definition in useCallback
build: src/components/encounter/ohri-encounter-form.component.tsx#L307
React Hook useEffect has missing dependencies: 'formJson?.encounterType', 'formJson.formOptions?.usePreviousValueDisabled', and 'patient?.id'. Either include them or remove the dependency array
build: src/components/encounter/ohri-encounter-form.component.tsx#L313
React Hook useEffect has a missing dependency: 'setIsLoadingFormDependencies'. Either include it or remove the dependency array. If 'setIsLoadingFormDependencies' changes too often, find the parent component that defines it and wrap that definition in useCallback
build: src/components/encounter/ohri-encounter-form.component.tsx#L390
React Hook useEffect has missing dependencies: 'scrollablePages' and 'setPagesWithErrors'. Either include them or remove the dependency array. If 'setPagesWithErrors' changes too often, find the parent component that defines it and wrap that definition in useCallback
build: src/components/extension/ohri-extension-parcel.component.tsx#L20
React Hook useEffect has missing dependencies: 'question.questionOptions.extensionId' and 'question.questionOptions.extensionSlotName'. Either include them or remove the dependency array
build: src/components/inputs/camera/camera.component.tsx#L17
React Hook React.useCallback has a missing dependency: 'handleImages'. Either include it or remove the dependency array. If 'handleImages' changes too often, find the parent component that defines it and wrap that definition in useCallback
build: src/components/inputs/date/ohri-date.component.tsx#L33
React Hook useEffect has a missing dependency: 'question'. Either include it or remove the dependency array. If 'setErrors' needs the current value of 'question', you can also switch to useReducer instead of useState and read 'question' in the reducer

Artifacts

Produced during runtime
Name Size
8ee7e24122c9027f Expired
2.21 KB