# "Random" compilation errors when importing modules

**URL:** <https://forum.elixirforum.com/t/random-compilation-errors-when-importing-modules/53298>\
**Category:** Questions\
**Tags:** mix, learning-elixir\
**Created:** [January 19, 2023, 6:34pm UTC](https://forum.elixirforum.com/t/random-compilation-errors-when-importing-modules/53298 "2023-01-19T18:34:03Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![dubesoftware](https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/dubesoftware/32/30041_2.png) [@dubesoftware](https://forum.elixirforum.com/u/dubesoftware)\
**Post date:** [January 19, 2023, 8:15pm UTC](https://forum.elixirforum.com/t/random-compilation-errors-when-importing-modules/53298/2 "2023-01-19T20:15:24Z")

</div>

Update: when I run `rm -rf _build` in my project home directory, and then I run `iex -S mix`, the app is recompiled successfully and I can import all modules in `iex`. However, running a standalone file using `elixir path/to/file` still produces the error “\*\* (CompileError) lib/servy/handler.ex:6: module Servy.Plugins is not loaded and could not be found”

Any ideas as to what’s going on?

---

_[View the full topic](https://forum.elixirforum.com/t/random-compilation-errors-when-importing-modules/53298)._
