Fl4m3Ph03n1x

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

Fl4m3Ph03n1x

I have created a bug report for this case:

https://github.com/phoenixframework/phoenix_live_view/issues/1467

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

LostKobrakai

mix archive.install hex phx_new 1.5.9
Albru

Albru

Thank you for reporting this properly, which I unfortunately didn’t end up doing. Glad to see this being resolved.

Where Next?

Popular in Questions Top

rms.mrcs
Hi, I need to transform a list of numbers into a map where the keys are the indexes and the values are the original values of the list. ...
New
JeremM34
Hello, how can I check the Phoenix version ? Thanks !
New
joaquinalcerro
Hi there, I am working with Ecto-Postgresql and I need to call all of the records from a specific table but the table has 40,000 records...
New
greenz1
I have a phoenix application from which a user can download multiple(5-6) files of size 1MB. I couldn’t find anything related to sending ...
New
9mm
I am constructing a JSON object (map) and I need to conditionally set a field. I’m trying to write proper elixir-way code… and I’m at a l...
New
siddhant3030
Hi, I have to write a raw query for one of my project. But till now I have used ecto queries and don’t have much experience writing raw ...
New
romenigld
I am trying to run a deploy with docker and I successfully runned with this command: docker build -t romenigld/blog-prod . but when I t...
New

Other popular topics Top

nobody
Hi! In PHP: $_SERVER[‘SERVER_ADDR’] - in Elixir? Searched the docs for ip address and the web, no good results. Thanks!
New
vertexbuffer
Hello, can anybody help here..? I have a list of players and I what to delete an element, but every for loop the list is reverting to ori...
New
baxterw3b
Hi guys, i’m new in the Elixir world, and i have to say, that i love it! i’m having some problem to understand anonymous functions with ...
New
stefanchrobot
What’s the safe way to decode a JSON string into a struct? I want to avoid calling String.to_atom. Jason.decode can give me a map with st...
New
gausby
I asked this very same question on twitter and got some interesting feedback, but I thought it would be a good question to ask here as we...
1207 40165 209
New
TunkShif
This post is an instruction guide to help you setup your Neovim for Elixir development from scratch. It includes general information on h...
274 42716 114
New

We're in Beta

About us Mission Statement