error in creating new project
below is the command
mix igniter.new it_toolbox_backend --with phx.new --install ash,ash_phoenix --install ash_graphql,ash_json_api --install ash_postgres,ash_authentication --install ash_authentication_phoenix,ash_csv --install ash_admin,ash_oban --install oban_web,ash_state_machine --install ash_events,ash_money --install ash_double_entry,ash_archival --install live_debugger,mishka_chelekom --install ash_paper_trail,cloak --install ash_cloak --auth-strategy password --auth-strategy magic_link --auth-strategy api_key --yes
below is the output
* creating...
...
Fetching and compiling dependencies ✔
Updating project's igniter dependency ✔
installing igniter ✔
temporarily adding igniter ✔
compiling igniter ✔
setting up igniter ✔
compiling 11 packages ✔
** (Mix) Could not invoke task "igniter.install": 3 errors found!
--auth-strategy : Unknown option
--auth-strategy : Unknown option
--auth-strategy : Unknown option
versions:
* hex-2.2.2-otp-27
* igniter_new-0.5.30
* phx_new-1.8.0-rc.4
9 Replies
is this copied directly from ash-hq?
that installer works for me 😄
same, both copying it directly from here and getting one from the website
I using windows 11 and latest PowerShell. Is this the issue?
That's definitely the difference
You can leave of the --auth-strategy flags and call the tasks yourself after
mix help
and there should be the ash_authentication tasks to add the strategiesHmm... I will try on wsl then copy folder over later see it works or not.
hmm... more errors. seems like some components in ash similar to beacon which are not working in windows os.
🤔 strange...
Could it maybe be the commas?
Can you try surrounding all those args w/ quotes?
It was okay in wsl, then I copy the folder to windows host except _build and deps. mix deps.get was okay but mix ash.setup error out. I believe I saw elixir_bcrypt compile error.
Ah, yeah
There are sometimes issues w/ NIFs on windows