Error
Uncaught Error: ComponentContext has not been provided. This should come from @openmrs/esm-react-utils.
Error
Uncaught Error: ComponentContext has not been provided. This should come from @openmrs/esm-react-utils.
The error suggests that your application is missing the required ComponentContext
provided by the @openmrs/esm-react-utils
library. To fix this issue, ensure that you have properly set up and configured the @openmrs/esm-react-utils
library in your project i.e.
In the component or module where you are encountering this error, make sure you are importing ComponentContext
from @openmrs/esm-react-utils
in this format
import { ComponentContext } from '@openmrs/esm-react-utils';