(chore) align and clean dependencies #571
Annotations
10 errors and 10 warnings
build:
node_modules/@openmrs/esm-styleguide/src/datepicker/openmrs/openmrs-date-picker.component.tsx#L79
Type 'Function' is not assignable to type 'Hook'.
|
build:
node_modules/@openmrs/esm-styleguide/src/datepicker/openmrs/openmrs-date-picker.component.tsx#L80
Type 'Function' is not assignable to type 'Hook'.
|
build:
node_modules/@openmrs/esm-styleguide/src/datepicker/openmrs/openmrs-date-picker.component.tsx#L81
Type 'string | Date' is not assignable to type 'string | number'.
|
build:
node_modules/@openmrs/esm-styleguide/src/datepicker/openmrs/openmrs-date-picker.component.tsx#L90
Type '{ id: string; dateFormat: string; labelText: string; invalid: boolean; invalidText: string; placeholder: string; style: CSSProperties; }' is not assignable to type 'IntrinsicAttributes & DatePickerInputProps & RefAttributes<HTMLDivElement>'.
|
build
typescript: command (/home/runner/work/openmrs-form-engine-lib/openmrs-form-engine-lib/) /tmp/xfs-192f651b/yarn run typescript exited (2)
|
build:
node_modules/@openmrs/esm-styleguide/src/left-nav/index.tsx#L37
Type 'string | ((instance: HTMLElement) => void) | RefObject<HTMLElement>' is not assignable to type 'Ref<HTMLElement>'.
|
build:
node_modules/@openmrs/esm-styleguide/src/notifications/actionable-notification.component.tsx#L56
Type 'string' is not assignable to type '"error" | "info" | "info-square" | "success" | "warning" | "warning-alt"'.
|
build:
node_modules/@openmrs/esm-styleguide/src/notifications/notification.component.tsx#L38
Type 'ReactNode' is not assignable to type 'string'.
|
build:
node_modules/@openmrs/esm-styleguide/src/toasts/toast.component.tsx#L60
Type 'ReactNode' is not assignable to type 'string'.
|
build:
src/components/encounter/ohri-encounter-form.component.tsx#L129
Argument of type 'string | boolean' is not assignable to parameter of type 'boolean'.
|
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/content-switcher/ohri-content-switcher.component.tsx#L31
React Hook useEffect has missing dependencies: 'encounterContext', 'handler', 'onChange', 'question', and 'setFieldValue'. Either include them or remove the dependency array. If 'onChange' changes too often, find the parent component that defines it and wrap that definition in useCallback
|
Artifacts
Produced during runtime
Name | Size | |
---|---|---|
8c20d8c06508356a
Expired
|
2.61 KB |
|