Skip to content

(chore) v5 migration fixes #225

(chore) v5 migration fixes

(chore) v5 migration fixes #225

Triggered via pull request August 1, 2023 15:56
Status Failure
Total duration 2m 46s
Artifacts

node.js.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

2 errors and 11 warnings
build: node_modules/@openmrs/esm-patient-common-lib/src/offline/visit.ts#L1
Type '{ currentVisit: Visit; isLoading: boolean; isValidating: false; isRetrospective: boolean; error: Error; mutate: () => void; }' is not assignable to type 'VisitReturnType'.
build
Process completed with exit code 2.
build
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/setup-node@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
build: src/controls/calendar/calendar.component.tsx#L45
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
build: src/controls/calendar/calendar.component.tsx#L45
React Hook useEffect has a complex expression in the dependency array. Extract it to a separate variable so it can be statically checked
build: src/controls/calendar/calendar.component.tsx#L164
React Hook useEffect has missing dependencies: 'fields', 'handler', and 'question'. Either include them or remove the dependency array
build: src/controls/calendar/calendar.component.tsx#L172
React Hook useEffect has a missing dependency: 'question.questionOptions.concept'. Either include it or remove the dependency array
build: src/controls/calendar/calendar.component.tsx#L189
React Hook useEffect has missing dependencies: 'onDateChange' and 'question.id'. Either include them or remove the dependency array. Outer scope values like 'window.jQuery' aren't valid dependencies because mutating them doesn't re-render the component
build: src/controls/date/ethiohri-date.component.tsx#L52
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
build: src/controls/date/ethiohri-date.component.tsx#L52
React Hook useEffect has a complex expression in the dependency array. Extract it to a separate variable so it can be statically checked
build: src/controls/date/ethiohri-date.component.tsx#L139
React Hook useEffect has missing dependencies: 'fields', 'handler', and 'question'. Either include them or remove the dependency array
build: src/controls/date/ethiohri-date.component.tsx#L147
React Hook useEffect has a missing dependency: 'question.questionOptions.concept'. Either include it or remove the dependency array
build: src/views/hiv-baseline/hiv-baseline-summary.component.tsx#L90
React Hook useEffect has unnecessary dependencies: 'encounterType_intake_A' and 'encounterType_intake_B'. Either exclude them or remove the dependency array. Outer scope values like 'encounterType_intake_A' aren't valid dependencies because mutating them doesn't re-render the component