# I cannot import(alias) defstruct

**URL:** <https://forum.elixirforum.com/t/i-cannot-import-alias-defstruct/51852>\
**Category:** Questions\
**Tags:** book-programming-phoenix, phoenix, troubleshooting\
**Created:** [November 17, 2022, 1:54am UTC](https://forum.elixirforum.com/t/i-cannot-import-alias-defstruct/51852 "2022-11-17T01:54:03Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![h1d3r00t](https://forum.elixirforum.com/letter_avatar_proxy/v4/letter/h/dec6dc/32.png) [@h1d3r00t](https://forum.elixirforum.com/u/h1d3r00t)\
**Post date:** [November 17, 2022, 11:49pm UTC](https://forum.elixirforum.com/t/i-cannot-import-alias-defstruct/51852/3 "2022-11-17T23:49:27Z")

</div>

```elixir
Erlang/OTP 25 [erts-13.0.4] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1] [jit:ns]

** (Mix) "mix" with no arguments must be executed in a directory with a mix.exs file

```

Now I can see this error. How can I solve this?

---

_[View the full topic](https://forum.elixirforum.com/t/i-cannot-import-alias-defstruct/51852)._
