Fl4m3Ph03n1x
Cannot create phoenix app inside umbrella project
Background
I have an umbrella app and I am trying to add a phoenix app inside of it. However, When I run the mix command to create a phoenix umbrella app, I get an error I don’t understand.
Problem
I have an umbrella app with the following structure:
market_manager
|_apps
|_ app1
|_ app2
I want to add another umbrella app to my apps folder, a phx_test_app.
To do so I am running mix phx.new.web phx_test --live --no-ecto inside of my apps folder. However I get the following error:
λ mix phx.new.web test --no-ecto
** (Mix) Could not find "use Mix.Config" or "import Config" in "c:/Users/palme/Documents/GitHub/market_manager/config/config.exs"
To me this is confusing, as this is contents of the file in question:
import Config
import_config "#{Mix.env()}.exs"
So I definitely have the one thing the error says I am missing.
Questions
Why am I having this error and how can I fix it?
For those of you curious enough, this is the project in question:
https://github.com/Fl4m3Ph03n1x/market_manager/tree/dev
Marked As Solved
Also Liked
Fl4m3Ph03n1x
I have created a bug report for this case:
Thank you everyone for the help!
I know most people prefer Linux when coding Elixir (me included) but if we find and report Windows issues like we did here we make Elixir better for everyone!
LostKobrakai
mix archive.install hex phx_new 1.5.9
Albru
Thank you for reporting this properly, which I unfortunately didn’t end up doing. Glad to see this being resolved.








