Ash FrameworkAF
Ash Framework3y ago
4 replies
lamp-town-guy

module AshPostgres.DataLayer.CustomIndexes is not loaded and could not be found

I'm trying Ash Postgres tutorial and I've encountered this error. Maybe it's my mistake because I already have Phoenix in my project and I'm not starting from scratch. But I've never seen this error before even when I've tried to migrate existing Elixir app. I've got this error when I've tired to create migrations and run them. So I should have all my Postgres/Ash setup ready to roll. Base Ash without Postgres worked as expected.

== Compilation error in file lib/app/support/resources/representative.ex ==
** (CompileError) lib/app/support/resources/representative.ex:4: module AshPostgres.DataLayer.CustomIndexes 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
    (ash_postgres 1.3.8) expanding macro: AshPostgres.DataLayer.postgres/1
    lib/app/support/resources/representative.ex:4: App.Support.Representative (module)


My other deviation from from tutorial is not calling the app Helpdesk but App. I don't think this should cause it but in case I've caused some weirdness I mention it. It's 1AM for me and I'm going to bed so I won't respond for next couple of hours.
Was this page helpful?