Hello Everyone, I am trying to setup openmrs-esm-patient-management for understanding the E2E tests in the openMRS. But I am getting this error when trying to start the development server.
TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received undefined
at validateString (internal/validators.js:124:11)
at basename (path.js:743:5)
at getMainBundle (D:\open-source\O3\openmrs-esm-patient-management\node_modules\openmrs\dist\utils\dependencies.js:13:35)
at runProjectWebpack (D:\open-source\O3\openmrs-esm-patient-management\node_modules\openmrs\dist\utils\importmap.js:93:53)
at D:\open-source\O3\openmrs-esm-patient-management\node_modules\openmrs\dist\utils\importmap.js:135:17
at Generator.next (<anonymous>)
at fulfilled (D:\open-source\O3\openmrs-esm-patient-management\node_modules\openmrs\dist\utils\importmap.js:5:58) {
code: 'ERR_INVALID_ARG_TYPE'
}
I am using windows machine and completed the o3 setup using docker. When I am doing the yarn start I am getting the above error.
If anyone can help me with the issue that would be a great help.
Yes I did the yarn install and also setup the O3 using the docker desktop. containers inside the docker desktop was also running when I was trying to start the dev server.
Build logs are exceeding the size of 512kb of the pastebin. But I tried running openmrs-esm-template-app it is running fine on my local. Just for the confirmation, you want me to share the docker logs, right?
The app is called “esm-appointments-app” not “esm-patient-appointments-app”. @ayushmishra If you want to use a local backend, you also need to add --backend http://localhost/openmrs/ to your command.