# 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:** 2

<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 19, 2018, 12:50pm UTC](https://talk.openmrs.org/t/coreapps-module-it-crashes-when-webpack-is-compiling/17218/22 "2018-04-19T12:50:54Z")

</div>

today i made pull once again and it works, maybe it were updates thanks you for your help from all and you @dkayiwa

---

<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 20, 2018, 4:43pm UTC](https://talk.openmrs.org/t/coreapps-module-it-crashes-when-webpack-is-compiling/17218/23 "2018-04-20T16:43:18Z")

</div>

@dkayiwa the next day i was starting the server, its stuck again on the message “webpack:wait until bundle finished:” like before… well im cant figure out why on the other day it worked fine… guess it blocks on running the node files

---

<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 20, 2018, 5:16pm UTC](https://talk.openmrs.org/t/coreapps-module-it-crashes-when-webpack-is-compiling/17218/24 "2018-04-20T17:16:39Z")

</div>

When you run `mvn clean install` on the module, does it run to completion?

---

<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 20, 2018, 5:23pm UTC](https://talk.openmrs.org/t/coreapps-module-it-crashes-when-webpack-is-compiling/17218/25 "2018-04-20T17:23:47Z")

</div>

yeah, but if i it on watch when watching the server it wont pass to me

---

<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 21, 2018, 10:30am UTC](https://talk.openmrs.org/t/coreapps-module-it-crashes-when-webpack-is-compiling/17218/26 "2018-04-21T10:30:02Z")

</div>

@dkayiwa @ssmusoke

Here is the screenshot of when “mvn clean install” vs “mvn openmrs-sdk:run”

 ![Screenshot_1](https://talk.openmrs.org/uploads/default/original/2X/7/78801abe712ef9ebd72abfcadc75d3292f57a89c.png)

 ![Screenshot_3](https://talk.openmrs.org/uploads/default/original/2X/a/a125e890bb0dbfa6df03daf5a9ebad0d46c28227.png)

on the first picture i wait ~15 seconds and then it continues on its own, but on the second i wait more a few minutes until i gotta finish the process. Notice the RAM(its memória in portuguese) of the node.js its using and it continues increasing (compare to the first picture its dont use so much RAM like on the second).

Obs: the command im running is “mvn clean install openmrs-sdk:run” inside the coreapps folder, but the result its the same if i try separated… the log for the second picture is [here](https://pastebin.com/UJz9FqkR)

Im starting going crazy with 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 21, 2018, 7:39pm UTC](https://talk.openmrs.org/t/coreapps-module-it-crashes-when-webpack-is-compiling/17218/27 "2018-04-21T19:39:09Z")

</div>

As for the next day, had you made any new local changes yet?

---

<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 21, 2018, 7:50pm UTC](https://talk.openmrs.org/t/coreapps-module-it-crashes-when-webpack-is-compiling/17218/28 "2018-04-21T19:50:21Z")

</div>

the only thin i did was shutdown my pc and then i turned on and tried to run the server. I added a fragment and his controller but already deleted them and still the same result

---

<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 22, 2018, 6:27am UTC](https://talk.openmrs.org/t/coreapps-module-it-crashes-when-webpack-is-compiling/17218/29 "2018-04-22T06:27:02Z")

</div>

@meizzz Can you share a link to your current repo so that I can take a look

---

<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 22, 2018, 9:47am UTC](https://talk.openmrs.org/t/coreapps-module-it-crashes-when-webpack-is-compiling/17218/30 "2018-04-22T09:47:55Z")

</div>

@ssmusoke what do you mean with repo? like just the modules or the server too?

what i got is a sdk installation of 2.7 ref and i edit just 2 modules( coreapps and my module)

---

<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 22, 2018, 9:49am UTC](https://talk.openmrs.org/t/coreapps-module-it-crashes-when-webpack-is-compiling/17218/31 "2018-04-22T09:49:31Z")

</div>

@meizzz Share your coreapps fork with whatever changes you have, so that I can try to run in my environment to try and diagnose the issue

---

<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 22, 2018, 11:29am UTC](https://talk.openmrs.org/t/coreapps-module-it-crashes-when-webpack-is-compiling/17218/32 "2018-04-22T11:29:18Z")

</div>

@ssmusoke sure, its [here](https://github.com/meizzz/openmrs-module-coreapps)

---

<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 22, 2018, 11:44am UTC](https://talk.openmrs.org/t/coreapps-module-it-crashes-when-webpack-is-compiling/17218/33 "2018-04-22T11:44:22Z")

</div>

@ssmusoke its funny if i download from repo and make clean install the module and run the server at 1st time it works, then i try to reboot my pc too see if it still work, surprise…, it dosent work it continue to get stuck on “webpack compiling” oh well…

---

<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 22, 2018, 12:02pm UTC](https://talk.openmrs.org/t/coreapps-module-it-crashes-when-webpack-is-compiling/17218/34 "2018-04-22T12:02:32Z")

</div>

Does the problem happen if, instead of rebooting your pc, you simply restart the sdk multiple times?

---

<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 22, 2018, 2:20pm UTC](https://talk.openmrs.org/t/coreapps-module-it-crashes-when-webpack-is-compiling/17218/35 "2018-04-22T14:20:36Z")

</div>

@dkayiwa if i make download and then clean install and run the server i can restart the sdk any times i want, but if i reboot the pc it doesnt not even 1 time… im starting to think when i make clean install the files generated just work for that system , if i reboot it messes everything

I noticed some warnings about the coreapps-omod, does this can be relevant to you?

[WARNING] [WARNING] Some problems were encountered while building the effective model for org.openmrs.module:coreapps-omod:jar:1.20.0-SNAPSHOT [WARNING] ‘build.plugins.plugin.(groupId:artifactId)’ must be unique but found duplicate declaration of plugin org.apache.maven.plugins:maven-dependency-plugin @ org.op enmrs.module:coreapps-omod:[unknown-version], C:\Users\Hugo\Desktop\app\meizzz-openmrs-module-coreapps\omod\pom.xml, line 435, column 21 [WARNING] ‘build.plugins.plugin.version’ for de.saumya.mojo:gem-maven-plugin is missing. @ org.openmrs.module:coreapps-omod:[unknown-version], C:\Users\Hugo\Desktop\app \meizzz-openmrs-module-coreapps\omod\pom.xml, line 461, column 21 [WARNING] [WARNING] It is highly recommended to fix these problems because they threaten the stability of your build. [WARNING] [WARNING] For this reason, future Maven versions might no longer support building such malformed projects. [WARNING]

---

<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 22, 2018, 5:34pm UTC](https://talk.openmrs.org/t/coreapps-module-it-crashes-when-webpack-is-compiling/17218/36 "2018-04-22T17:34:49Z")

</div>

I have no issues on my end - its probably some kind of timeout within the environment building with webpack on Windows.

Unfortunately I am at my skills end ☹

---

<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 22, 2018, 9:28pm UTC](https://talk.openmrs.org/t/coreapps-module-it-crashes-when-webpack-is-compiling/17218/37 "2018-04-22T21:28:59Z")

</div>

@ssmusoke ty for the effort tough

---

<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 23, 2018, 7:13am UTC](https://talk.openmrs.org/t/coreapps-module-it-crashes-when-webpack-is-compiling/17218/38 "2018-04-23T07:13:08Z")

</div>

This is getting into an interesting puzzle. 😄

Does it help in any way if you wiped out your maven .m2 folder?

---

<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 23, 2018, 9:16am UTC](https://talk.openmrs.org/t/coreapps-module-it-crashes-when-webpack-is-compiling/17218/39 "2018-04-23T09:16:56Z")

</div>

the m2 folder or just coreapps m2 folder? if i delete the m2 file dosnt i gotta do more commands like the one on sdk 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 23, 2018, 9:28am UTC](https://talk.openmrs.org/t/coreapps-module-it-crashes-when-webpack-is-compiling/17218/40 "2018-04-23T09:28:25Z")

</div>

The maven .m2 folder. Which will essentially remove all maven artifacts from your local repository.

---

<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 23, 2018, 10:49am UTC](https://talk.openmrs.org/t/coreapps-module-it-crashes-when-webpack-is-compiling/17218/41 "2018-04-23T10:49:06Z")

</div>

i tried to delete the .m2 folder and still “crashes” on the same spot… Maybe if i delete some of node files the problem is which ones and where are them

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

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