Skip to content

(chore) v5 migration fixes #224

(chore) v5 migration fixes

(chore) v5 migration fixes #224

Triggered via pull request July 19, 2023 07:27
Status Failure
Total duration 3m 12s
Artifacts

node.js.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 11 warnings
build: node_modules/@openmrs/esm-patient-common-lib/src/offline/visit.ts#L1
Property 'isRetrospective' is missing in type '{ currentVisit: Visit; isLoading: boolean; isValidating: false; error: Error; mutate: () => void; }' but required in type 'VisitReturnType'.
build: src/pages/hiv-testing-service/tabs/positive-tracking.component.tsx#L1
Type '{ patientUuid: string; encounterUuid: string; form: { package: string; name: string; }; columns: { key: string; header: string; getValue: (encounter: any) => any; }[]; description: string; headerTitle: string; dropdownText: string; launchOptions: { ...; }; }' is not assignable to type 'IntrinsicAttributes & EncounterListProps'.
build: src/pages/hiv-testing-service/tabs/retest.component.tsx#L1
Type '{ patientUuid: string; encounterUuid: string; form: { package: string; name: string; }; columns: { key: string; header: string; getValue: (encounter: any) => any; }[]; description: string; headerTitle: string; dropdownText: string; launchOptions: { ...; }; }' is not assignable to type 'IntrinsicAttributes & EncounterListProps'.
build: src/pages/pmtct/pmtct.component.tsx#L1
Type '{ patientUuid: string; encounterUuid: string; form: { package: string; name: string; }; columns: EncounterListColumn[]; description: string; headerTitle: string; launchOptions: { ...; }; }' is not assignable to type 'IntrinsicAttributes & EncounterListProps'.
build: src/pages/post-exposure/post-exposure.component.tsx#L1
Type '{ patientUuid: string; encounterUuid: string; form: { package: string; name: string; }; columns: { key: string; header: string; getValue: (encounter: any) => any; }[]; description: string; headerTitle: string; dropdownText: string; launchOptions: { ...; }; }' is not assignable to type 'IntrinsicAttributes & EncounterListProps'.
build: src/pages/pre-exposure/tabs/pre-exposure-followup.component.tsx#L1
Type '{ patientUuid: string; encounterUuid: string; form: { package: string; name: string; }; columns: { key: string; header: string; getValue: (encounter: any) => any; }[]; description: string; headerTitle: string; dropdownText: string; launchOptions: { ...; }; }' is not assignable to type 'IntrinsicAttributes & EncounterListProps'.
build: src/pages/pre-exposure/tabs/pre-exposure-screening.component.tsx#L1
Type '{ patientUuid: string; encounterUuid: string; form: { package: string; name: string; }; columns: { key: string; header: string; getValue: (encounter: any) => any; }[]; description: string; headerTitle: string; dropdownText: string; launchOptions: { ...; }; }' is not assignable to type 'IntrinsicAttributes & EncounterListProps'.
build: src/pages/program-management/tabs/family-information.component.tsx#L1
Type '{ patientUuid: string; encounterUuid: string; form: { package: string; name: string; }; columns: { key: string; header: string; getValue: (encounter: any) => any; }[]; description: string; headerTitle: string; dropdownText: string; launchOptions: { ...; }; }' is not assignable to type 'IntrinsicAttributes & EncounterListProps'.
build: src/pages/program-management/tabs/followup.component.tsx#L1
Type '{ patientUuid: string; encounterUuid: string; form: { package: string; name: string; }; columns: EncounterListColumn[]; description: string; headerTitle: string; launchOptions: { ...; }; }' is not assignable to type 'IntrinsicAttributes & EncounterListProps'.
build: src/pages/program-management/tabs/intake-a.component.tsx#L1
Type '{ patientUuid: string; encounterUuid: string; form: { package: string; name: string; }; columns: { key: string; header: string; getValue: (encounter: any) => any; }[]; description: string; headerTitle: string; dropdownText: string; launchOptions: { ...; }; }' is not assignable to type 'IntrinsicAttributes & EncounterListProps'.
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