Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

useless ':phoenix_live_view' configuration line in config/dev.exs file #5599

Closed
namjae opened this issue Oct 10, 2023 · 0 comments
Closed

useless ':phoenix_live_view' configuration line in config/dev.exs file #5599

namjae opened this issue Oct 10, 2023 · 0 comments

Comments

@namjae
Copy link

namjae commented Oct 10, 2023

Environment

  • Elixir version (elixir -v): Elixir 1.15.6 (compiled with Erlang/OTP 26)
  • Phoenix version (mix deps): phoenix 1.7.8
  • Operating system: Ubuntu 22.04.3 LTS

Actual behavior

/tmp $ mix phx.new foo --no-html --no-live --no-dashboard --no-assets
* creating foo/lib/foo/application.ex
* creating foo/lib/foo.ex
* creating foo/lib/foo_web/controllers/error_json.ex
* creating foo/lib/foo_web/endpoint.ex
* creating foo/lib/foo_web/router.ex
* creating foo/lib/foo_web/telemetry.ex
* creating foo/lib/foo_web.ex
* creating foo/mix.exs
* creating foo/README.md
* creating foo/.formatter.exs
* creating foo/.gitignore
* creating foo/test/support/conn_case.ex
* creating foo/test/test_helper.exs
* creating foo/test/foo_web/controllers/error_json_test.exs
* creating foo/lib/foo/repo.ex
* creating foo/priv/repo/migrations/.formatter.exs
* creating foo/priv/repo/seeds.exs
* creating foo/test/support/data_case.ex
* creating foo/lib/foo/mailer.ex
* creating foo/lib/foo_web/gettext.ex
* creating foo/priv/gettext/en/LC_MESSAGES/errors.po
* creating foo/priv/gettext/errors.pot
* creating foo/priv/static/robots.txt
* creating foo/priv/static/favicon.ico

Fetch and install dependencies? [Yn] 
* running mix deps.get
* running mix deps.compile

We are almost there! The following steps are missing:

    $ cd foo

Then configure your database in config/dev.exs and run:

    $ mix ecto.create

Start your Phoenix app with:

    $ mix phx.server

You can also run your app inside IEx (Interactive Elixir) as:

    $ iex -S mix phx.server

/tmp $ cd foo
/tmp/foo $ mix ecto.create
Compiling 10 files (.ex)
Generated foo app
You have configured application :phoenix_live_view in your configuration file,
but the application is not available.

This usually means one of:

  1. You have not added the application as a dependency in a mix.exs file.

  2. You are configuring an application that does not really exist.

Please ensure :phoenix_live_view exists or remove the configuration.

The database for Foo.Repo has been created
/tmp/foo $ 

Expected behavior

there should be no warning message (which means config/dev.exs file has useless :phoenix_live_view config in a project created with --no-live option)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant