# Coreapps module "it crashes when webpack is compiling"

**URL:** <https://talk.openmrs.org/t/coreapps-module-it-crashes-when-webpack-is-compiling/17218>\
**Category:** Development\
**Tags:** module, openmrs-sdk, coreapps, developers-forum\
**Created:** [March 28, 2018, 3:24pm UTC](https://talk.openmrs.org/t/coreapps-module-it-crashes-when-webpack-is-compiling/17218 "2018-03-28T15:24:20Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![meizzz](https://talk.openmrs.org/user_avatar/talk.openmrs.org/meizzz/32/7168_2.png) [@meizzz](https://talk.openmrs.org/u/meizzz)\
**Post date:** [March 28, 2018, 3:24pm UTC](https://talk.openmrs.org/t/coreapps-module-it-crashes-when-webpack-is-compiling/17218/1 "2018-03-28T15:24:20Z")

</div>

Hello, I wanted to make some UI adjustments on the patient page on local machine so i have forked and cloned the coreapps module and i made “mvn clean install” then modify the patient HTML page and made “mvn openmrs-sdk:watch”, so i refreshed(crtl + f5) and the page stayed the same.

Do this module need to build always after some UI changes? any can help me what im doing wrong

Thanks

---

<div class="post-metadata">

**Author:** ![willa](https://talk.openmrs.org/user_avatar/talk.openmrs.org/willa/32/256_2.png) [@willa](https://talk.openmrs.org/u/willa)\
**Post date:** [March 28, 2018, 3:54pm UTC](https://talk.openmrs.org/t/coreapps-module-it-crashes-when-webpack-is-compiling/17218/2 "2018-03-28T15:54:27Z")

</div>

For what it is worth I have tried to use this SDK feature without success! I always have to build. I didn’t do enough troubleshooting to see whether there was something I am doing wrong though, so it might a mistake on my part.

---

<div class="post-metadata">

**Author:** ![darius](https://talk.openmrs.org/user_avatar/talk.openmrs.org/darius/32/8082_2.png) [@darius](https://talk.openmrs.org/u/darius)\
**Post date:** [March 28, 2018, 4:06pm UTC](https://talk.openmrs.org/t/coreapps-module-it-crashes-when-webpack-is-compiling/17218/3 "2018-03-28T16:06:19Z")

</div>

I haven’t used this feature in a long time either, but just to check, after doing :watch you restarted the sdk server, right?

---

<div class="post-metadata">

**Author:** ![meizzz](https://talk.openmrs.org/user_avatar/talk.openmrs.org/meizzz/32/7168_2.png) [@meizzz](https://talk.openmrs.org/u/meizzz)\
**Post date:** [March 28, 2018, 4:06pm UTC](https://talk.openmrs.org/t/coreapps-module-it-crashes-when-webpack-is-compiling/17218/4 "2018-03-28T16:06:40Z")

</div>

@willa @darius , ty for your fast answer. But even after i build the coreapps module, i try to refresh(crtl + f5) and the page stay the same, Do i need to update the module on the page `localhost:8090/openmrs/admin/modules/module.list`?

---

<div class="post-metadata">

**Author:** ![meizzz](https://talk.openmrs.org/user_avatar/talk.openmrs.org/meizzz/32/7168_2.png) [@meizzz](https://talk.openmrs.org/u/meizzz)\
**Post date:** [March 28, 2018, 5:13pm UTC](https://talk.openmrs.org/t/coreapps-module-it-crashes-when-webpack-is-compiling/17218/6 "2018-03-28T17:13:21Z")

</div>

Solved: the problem was not running the command line as Admin.

After a normal reboot, now the server it get stuck on starting the server, even on running as Admin [log here](https://pastebin.com/UJz9FqkR).

Any one had this problem or know how to solve it? Maybe @dkayiwa knows about this

PS: since the main issue is solved, im not sure if should create another topic about this second issue

---

<div class="post-metadata">

**Author:** ![dkayiwa](https://talk.openmrs.org/user_avatar/talk.openmrs.org/dkayiwa/32/179_2.png) [@dkayiwa](https://talk.openmrs.org/u/dkayiwa)\
**Post date:** [March 30, 2018, 11:57am UTC](https://talk.openmrs.org/t/coreapps-module-it-crashes-when-webpack-is-compiling/17218/7 "2018-03-30T11:57:42Z")

</div>

@meizzz does it still get stuck when you do not watch any module?

---

<div class="post-metadata">

**Author:** ![meizzz](https://talk.openmrs.org/user_avatar/talk.openmrs.org/meizzz/32/7168_2.png) [@meizzz](https://talk.openmrs.org/u/meizzz)\
**Post date:** [March 30, 2018, 8:50pm UTC](https://talk.openmrs.org/t/coreapps-module-it-crashes-when-webpack-is-compiling/17218/8 "2018-03-30T20:50:41Z")

</div>

@dkayiwa, When “watch” the module it gets stuck on server running or build the coreapps module like the pastebin that i putted on the other day. But when i unwatch both(server or build the module) they run okay, but the problem is that the changes i wanted to make on Coreapps module doesn’t appear,even when i refresh(ctrl + f5)

Any suggestions?

---

<div class="post-metadata">

**Author:** ![meizzz](https://talk.openmrs.org/user_avatar/talk.openmrs.org/meizzz/32/7168_2.png) [@meizzz](https://talk.openmrs.org/u/meizzz)\
**Post date:** [April 13, 2018, 2:05pm UTC](https://talk.openmrs.org/t/coreapps-module-it-crashes-when-webpack-is-compiling/17218/9 "2018-04-13T14:05:56Z")

</div>

@dkayiwa, maybe @wyclif or @raff know anything whats going on

---

<div class="post-metadata">

**Author:** ![dkayiwa](https://talk.openmrs.org/user_avatar/talk.openmrs.org/dkayiwa/32/179_2.png) [@dkayiwa](https://talk.openmrs.org/u/dkayiwa)\
**Post date:** [April 13, 2018, 2:16pm UTC](https://talk.openmrs.org/t/coreapps-module-it-crashes-when-webpack-is-compiling/17218/10 "2018-04-13T14:16:53Z")

</div>

What kind of changes are they that do not appear? Can you tell us the class where these changes are?

---

<div class="post-metadata">

**Author:** ![meizzz](https://talk.openmrs.org/user_avatar/talk.openmrs.org/meizzz/32/7168_2.png) [@meizzz](https://talk.openmrs.org/u/meizzz)\
**Post date:** [April 13, 2018, 4:09pm UTC](https://talk.openmrs.org/t/coreapps-module-it-crashes-when-webpack-is-compiling/17218/11 "2018-04-13T16:09:36Z")

</div>

@dkayiwa, i just made some view changes on .gsp files. The first problem is that i cant build the module or run the server while watch the coreapps module. Solution for this is to make clean install for each change i make, but ofc that’s not a reasonable solution, i expect to later make changes. Any solution for this?

---

<div class="post-metadata">

**Author:** ![dkayiwa](https://talk.openmrs.org/user_avatar/talk.openmrs.org/dkayiwa/32/179_2.png) [@dkayiwa](https://talk.openmrs.org/u/dkayiwa)\
**Post date:** [April 14, 2018, 7:48pm UTC](https://talk.openmrs.org/t/coreapps-module-it-crashes-when-webpack-is-compiling/17218/12 "2018-04-14T19:48:21Z")

</div>

Can i look at the log you get from the time you execute the sdk run command?

---

<div class="post-metadata">

**Author:** ![meizzz](https://talk.openmrs.org/user_avatar/talk.openmrs.org/meizzz/32/7168_2.png) [@meizzz](https://talk.openmrs.org/u/meizzz)\
**Post date:** [April 14, 2018, 8:13pm UTC](https://talk.openmrs.org/t/coreapps-module-it-crashes-when-webpack-is-compiling/17218/13 "2018-04-14T20:13:25Z")

</div>

@dkayiwa with watching the core apps [here](https://pastebin.com/UJz9FqkR)

Thanks for the help, btw

---

<div class="post-metadata">

**Author:** ![dkayiwa](https://talk.openmrs.org/user_avatar/talk.openmrs.org/dkayiwa/32/179_2.png) [@dkayiwa](https://talk.openmrs.org/u/dkayiwa)\
**Post date:** [April 14, 2018, 8:38pm UTC](https://talk.openmrs.org/t/coreapps-module-it-crashes-when-webpack-is-compiling/17218/14 "2018-04-14T20:38:40Z")

</div>

Do you run this with an internet connection?

---

<div class="post-metadata">

**Author:** ![meizzz](https://talk.openmrs.org/user_avatar/talk.openmrs.org/meizzz/32/7168_2.png) [@meizzz](https://talk.openmrs.org/u/meizzz)\
**Post date:** [April 14, 2018, 8:45pm UTC](https://talk.openmrs.org/t/coreapps-module-it-crashes-when-webpack-is-compiling/17218/15 "2018-04-14T20:45:39Z")

</div>

yeah i run with internet

---

<div class="post-metadata">

**Author:** ![dkayiwa](https://talk.openmrs.org/user_avatar/talk.openmrs.org/dkayiwa/32/179_2.png) [@dkayiwa](https://talk.openmrs.org/u/dkayiwa)\
**Post date:** [April 17, 2018, 11:37am UTC](https://talk.openmrs.org/t/coreapps-module-it-crashes-when-webpack-is-compiling/17218/16 "2018-04-17T11:37:32Z")

</div>

Do you get the same behaviour when you try watch another module like this one? [https://github.com/openmrs/openmrs-module-adminui](https://github.com/openmrs/openmrs-module-adminui)

---

<div class="post-metadata">

**Author:** ![ssmusoke](https://talk.openmrs.org/user_avatar/talk.openmrs.org/ssmusoke/32/8020_2.png) [@ssmusoke](https://talk.openmrs.org/u/ssmusoke)\
**Post date:** [April 17, 2018, 1:44pm UTC](https://talk.openmrs.org/t/coreapps-module-it-crashes-when-webpack-is-compiling/17218/17 "2018-04-17T13:44:37Z")

</div>

> [@meizzz](#):
>
> @dkayiwa, i just made some view changes on .gsp files. The first problem is that i cant build the module or run the server while watch the coreapps module. Solution for this is to make clean install for each change i make, but ofc that’s not a reasonable solution, i expect to later make changes. Any solution for this?

For GSP files, these are automatically updated when the module is watched. The Javascript files are another issue since they are compiled with npm etc, so you need to stop and start the server, which recompiles them

---

<div class="post-metadata">

**Author:** ![meizzz](https://talk.openmrs.org/user_avatar/talk.openmrs.org/meizzz/32/7168_2.png) [@meizzz](https://talk.openmrs.org/u/meizzz)\
**Post date:** [April 18, 2018, 3:35pm UTC](https://talk.openmrs.org/t/coreapps-module-it-crashes-when-webpack-is-compiling/17218/18 "2018-04-18T15:35:12Z")

</div>

@dkayiwa , everything normal if i try to watch and build that module. If @ssmusoke says its true and not a chance a ill spent a lot of time on reinstalling the coreapps and restart a the server

---

<div class="post-metadata">

**Author:** ![dkayiwa](https://talk.openmrs.org/user_avatar/talk.openmrs.org/dkayiwa/32/179_2.png) [@dkayiwa](https://talk.openmrs.org/u/dkayiwa)\
**Post date:** [April 18, 2018, 6:45pm UTC](https://talk.openmrs.org/t/coreapps-module-it-crashes-when-webpack-is-compiling/17218/19 "2018-04-18T18:45:59Z")

</div>

@meizzz does that mean your interest is in watching JavaScript files?

---

<div class="post-metadata">

**Author:** ![meizzz](https://talk.openmrs.org/user_avatar/talk.openmrs.org/meizzz/32/7168_2.png) [@meizzz](https://talk.openmrs.org/u/meizzz)\
**Post date:** [April 18, 2018, 7:35pm UTC](https://talk.openmrs.org/t/coreapps-module-it-crashes-when-webpack-is-compiling/17218/20 "2018-04-18T19:35:30Z")

</div>

@dkayiwa i want to edit one page off the coreapps with my service that i created on my module

---

<div class="post-metadata">

**Author:** ![dkayiwa](https://talk.openmrs.org/user_avatar/talk.openmrs.org/dkayiwa/32/179_2.png) [@dkayiwa](https://talk.openmrs.org/u/dkayiwa)\
**Post date:** [April 18, 2018, 7:51pm UTC](https://talk.openmrs.org/t/coreapps-module-it-crashes-when-webpack-is-compiling/17218/21 "2018-04-18T19:51:52Z")

</div>

I tried watching a branch new coreapps module without any local changes and my .gsp and java controller class changes were hot reloaded as expected, without requiring me to recompile and redeploy. That is, on just saving, the changes were reflected in the UI on refreshing the browser.

[Next page](https://talk.openmrs.org/t/coreapps-module-it-crashes-when-webpack-is-compiling/17218.md?page=2)
