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

mix admin.install error #445

Open
rickmutua opened this issue Jul 5, 2018 · 1 comment
Open

mix admin.install error #445

rickmutua opened this issue Jul 5, 2018 · 1 comment

Comments

@rickmutua
Copy link

$ mix admin.install
* creating css files
* creating js files
* updating config/config.exs
* skipping xain config. It already exists.
** (ArgumentError) could not fetch application environment :default_locale for application :gettext because the application was not loaded/started. If your application depends on :gettext at runtime, make sure to load/start it or list it under :extra_applications in your mix.exs file
    (elixir) lib/application.ex:373: Application.fetch_env!/2
    lib/gettext.ex:677: Gettext.dgettext/4
    lib/mix/tasks/admin.install.ex:229: Mix.Tasks.Admin.Install.do_dashboard/1
    lib/mix/tasks/admin.install.ex:57: Mix.Tasks.Admin.Install.do_install/1
    (mix) lib/mix/task.ex:314: Mix.Task.run_task/3
    (mix) lib/mix/cli.ex:80: Mix.CLI.run_task/2

@trptcolin
Copy link

Workaround for us was adding a default_locale to our application's gettext config, e.g.

config :gettext,
  default_locale: "en/us"

That was in addition to following the suggestion in the error message, adding :gettext to the extra_applications list in mix.exs.

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

2 participants