# Has anyone got the solution to avoid the error 'module is not defined' in ghost dev environment?

**URL:** <https://forum.ghost.org/t/has-anyone-got-the-solution-to-avoid-the-error-module-is-not-defined-in-ghost-dev-environment/4330>\
**Category:** Developer help\
**Created:** [December 1, 2018, 3:55am UTC](https://forum.ghost.org/t/has-anyone-got-the-solution-to-avoid-the-error-module-is-not-defined-in-ghost-dev-environment/4330 "2018-12-01T03:55:30Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![lunaticmonk](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/lunaticmonk/32/975_2.png) [@lunaticmonk](https://forum.ghost.org/u/lunaticmonk)\
**Post date:** [December 1, 2018, 3:55am UTC](https://forum.ghost.org/t/has-anyone-got-the-solution-to-avoid-the-error-module-is-not-defined-in-ghost-dev-environment/4330/1 "2018-12-01T03:55:30Z")

</div>

I know a previous thread was opened on this same topic but replies are not allowed there. I wanted to ask about the two `ReferenceError: module is not defined` and `Could not find module`ember-resolver`imported from`ghost-admin/resolver`` errors that come at the startup of admin panel. Wanted to know if anyone got the solution to avoid this because everytime I stop my server and restart it, I experience this issue and then I have to restart my computer to get it working.

If anyone has any better way to avoid this, I would be glad if you share it here.

Best,  
Sumedh.

---

<div class="post-metadata">

**Author:** ![Kevin](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/kevin/32/32_2.png) [@Kevin](https://forum.ghost.org/u/Kevin)\
**Post date:** [December 1, 2018, 9:21am UTC](https://forum.ghost.org/t/has-anyone-got-the-solution-to-avoid-the-error-module-is-not-defined-in-ghost-dev-environment/4330/2 "2018-12-01T09:21:19Z")

</div>

No solution at present. I’m hoping an upgrade of ember and ember-cli will help - it’s not just ghost where the problem occurs and it appears to have been caused by something in how macOS handles files

---

<div class="post-metadata">

**Author:** ![lunaticmonk](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/lunaticmonk/32/975_2.png) [@lunaticmonk](https://forum.ghost.org/u/lunaticmonk)\
**Post date:** [December 1, 2018, 5:15pm UTC](https://forum.ghost.org/t/has-anyone-got-the-solution-to-avoid-the-error-module-is-not-defined-in-ghost-dev-environment/4330/3 "2018-12-01T17:15:30Z")

</div>

Thanks, Kevin. I understand.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex015/uploads/ghost2/original/2X/b/ba9ce5100b8bb264586f4f572545596b2ce3f081.png) [@system](https://forum.ghost.org/u/system)\
**Post date:** [December 15, 2018, 5:15pm UTC](https://forum.ghost.org/t/has-anyone-got-the-solution-to-avoid-the-error-module-is-not-defined-in-ghost-dev-environment/4330/4 "2018-12-15T17:15:42Z")

</div>

Closed on December 15, 2018, 5:15pm UTC

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
