Stumped at the start of the Getting started

Hey everyone, hi Zach,

Coming back to Ash after a while (pre 3), and strangely I can’t get past the first few step of getting started?

I create the project, add the two first files (support.ex, ticket.ex) and mix compile will fail with the following error.

Compiling 2 files (.ex)
    error: module Ash.Domain is not loaded and could not be found. This may be happening because the module you are trying to load directly or indirectly depends on the current module
    │
  2 │   use Ash.Domain
    │   ^^^^^^^^^^^^^^
    │
    └─ lib/helpdesk/support.ex:2: Helpdesk.Support (module)

    error: module Ash.Resource is not loaded and could not be found. This may be happening because the module you are trying to load directly or indirectly depends on the current module
    │
  3 │   use Ash.Resource, domain: Helpdesk.Support
    │   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    │
    └─ lib/helpdesk/support/ticket.ex:3: Helpdesk.Support.Ticket (module)


== Compilation error in file lib/helpdesk/support.ex ==
** (CompileError) lib/helpdesk/support.ex: cannot compile module Helpdesk.Support (errors have been logged)
    (elixir 1.17.2) expanding macro: Kernel.use/1
    lib/helpdesk/support.ex:2: Helpdesk.Support (module)

Also the project creation ended with this, so I am not really sure it succeded :
** (EXIT from #PID<0.95.0>) killed
The files are there though, here is a repo : GitHub - axelbdt/ash_stumped

Thanks in advance for any pointer :pray:

Sorry about this! You started in a very small window where a bug was introduced to igniter :cry:

It should be fixed now, but the bug is that you got only: [] in your dependency for {:ash, ...

So remove only: [] and you should be good to go. Also do mix deps.update igniter to make sure it doesn’t happen again.

1 Like

Thank you Zach, I was getting quite confused haha. Indeed, the commands in the guide work now.

Also thanks for pointing out the error in the generated code, it makes sense now.

Still in awe of your work, keep it up!

1 Like