@raff , I’m facing a problem due to webpack. It seems like ui.includeJavascript fetching scripts from wrong location or webpack is saving compiled scripts in wrong location. There was 404 error on these scripts:
I’m using SNAPSHOT version of coreaps-module but still I’m facing the issue. When I copied the scripts generated in omod/target/classes/web/module/resources/scripts/web/ to omod/src/main/webapp/resources/scripts/web/ , everything worked fine. Could you please look into this ?
Thanks
@raff , I added coreapps to watched project and it build without error and also npm run watch was working without any error but it looks like ui.includeJavascript picking scripts from wrong location. When I copied the generated scripts in that location all the widgets start working. That’s how I completed DINT-77 .
It should work, if you update uiframework to the latest (3.12.0-SNAPSHOT) as mentioned in the README:
For continous development we recommend setting up a server using OpenMRS SDK and adding the coreapps module to watched projects (supported in UI Framework 3.12.0+).
@raff, I did look for the version 3.12.0+ in the modules.openmrs.org but only found 3.11.0+ version there. I will clone the uiframework module and try again. I’ll let you know if that worked or not.
I guess we should update the README to mention the version specified is SNAPSHOT version or we can upload newer version on the modules.openmrs.org .