I’m following the Programming Phoenix book, working on the section to implement logging in/out an authenticated user, and am receiving an error I don’t know what to do with:
mix phoenix.server
Compiled lib/rumbl.ex
Compiled lib/rumbl/repo.ex
Compiled web/channels/user_socket.ex
Compiled web/web.ex
Compiled web/models/user.ex
== Compilation error on file web/router.ex ==
** (UndefinedFunctionError) undefined function: Rumbl.Auth.init/1 (module Rumbl.Auth is not available)
Rumbl.Auth.init([repo: Rumbl.Repo])
(plug) lib/plug/builder.ex:198: Plug.Builder.init_module_plug/3
(plug) lib/plug/builder.ex:186: anonymous fn/4 in Plug.Builder.compile/3
(elixir) lib/enum.ex:1387: Enum."-reduce/3-lists^foldl/2-0-"/3
(plug) lib/plug/builder.ex:186: Plug.Builder.compile/3
web/router.ex:4: (module)
(stdlib) erl_eval.erl:669: :erl_eval.do_apply/6
(elixir) lib/kernel/parallel_compiler.ex:100: anonymous fn/4 in Kernel.ParallelCompiler.spawn_compilers/8
== Compilation error on file lib/rumbl/endpoint.ex ==
** (UndefinedFunctionError) undefined function: Rumbl.Router.init/1 (module Rumbl.Router is not available)
Rumbl.Router.init([])
(plug) lib/plug/builder.ex:198: Plug.Builder.init_module_plug/3
(plug) lib/plug/builder.ex:186: anonymous fn/4 in Plug.Builder.compile/3
(elixir) lib/enum.ex:1387: Enum."-reduce/3-lists^foldl/2-0-"/3
(plug) lib/plug/builder.ex:186: Plug.Builder.compile/3
(phoenix) expanding macro: Phoenix.Endpoint.__before_compile__/1
lib/rumbl/endpoint.ex:1: Rumbl.Endpoint (module)
(elixir) lib/kernel/parallel_compiler.ex:100: anonymous fn/4 in Kernel.ParallelCompiler.spawn_compilers/8
== Compilation error on file web/views/user_view.ex ==
** (CompileError) web/views/user_view.ex:2: module Rumbl.Router.Helpers is not loaded and could not be found
expanding macro: Rumbl.Web.__using__/1
web/views/user_view.ex:2: Rumbl.UserView (module)
(elixir) expanding macro: Kernel.use/2
web/views/user_view.ex:2: Rumbl.UserView (module)
(elixir) lib/kernel/parallel_compiler.ex:100: anonymous fn/4 in Kernel.ParallelCompiler.spawn_compilers/8
== Compilation error on file web/views/error_view.ex ==
** (CompileError) web/views/error_view.ex:2: module Rumbl.Router.Helpers is not loaded and could not be found
expanding macro: Rumbl.Web.__using__/1
web/views/error_view.ex:2: Rumbl.ErrorView (module)
(elixir) expanding macro: Kernel.use/2
web/views/error_view.ex:2: Rumbl.ErrorView (module)
(elixir) lib/kernel/parallel_compiler.ex:100: anonymous fn/4 in Kernel.ParallelCompiler.spawn_compilers/8
== Compilation error on file web/controllers/auth.ex ==
** (CompileError) web/controllers/auth.ex:3: module Comeonin.Bcypt is not loaded and could not be found
(stdlib) erl_eval.erl:669: :erl_eval.do_apply/6
(elixir) lib/kernel/parallel_compiler.ex:100: anonymous fn/4 in Kernel.ParallelCompiler.spawn_compilers/8
== Compilation error on file web/controllers/user_controller.ex ==
** (CompileError) web/controllers/user_controller.ex:2: module Rumbl.Router.Helpers is not loaded and could not be found
expanding macro: Rumbl.Web.__using__/1
web/controllers/user_controller.ex:2: Rumbl.UserController (module)
(elixir) expanding macro: Kernel.use/2
web/controllers/user_controller.ex:2: Rumbl.UserController (module)
(elixir) lib/kernel/parallel_compiler.ex:100: anonymous fn/4 in Kernel.ParallelCompiler.spawn_compilers/8
== Compilation error on file web/controllers/page_controller.ex ==
** (CompileError) web/controllers/page_controller.ex:2: module Rumbl.Router.Helpers is not loaded and could not be found
expanding macro: Rumbl.Web.__using__/1
web/controllers/page_controller.ex:2: Rumbl.PageController (module)
(elixir) expanding macro: Kernel.use/2
web/controllers/page_controller.ex:2: Rumbl.PageController (module)
(elixir) lib/kernel/parallel_compiler.ex:100: anonymous fn/4 in Kernel.ParallelCompiler.spawn_compilers/8
== Compilation error on file web/views/session_view.ex ==
** (CompileError) web/views/session_view.ex:2: module Rumbl.Router.Helpers is not loaded and could not be found
expanding macro: Rumbl.Web.__using__/1
web/views/session_view.ex:2: Rumbl.SessionView (module)
(elixir) expanding macro: Kernel.use/2
web/views/session_view.ex:2: Rumbl.SessionView (module)
(elixir) lib/kernel/parallel_compiler.ex:100: anonymous fn/4 in Kernel.ParallelCompiler.spawn_compilers/8
== Compilation error on file web/views/page_view.ex ==
** (CompileError) web/views/page_view.ex:2: module Rumbl.Router.Helpers is not loaded and could not be found
expanding macro: Rumbl.Web.__using__/1
web/views/page_view.ex:2: Rumbl.PageView (module)
(elixir) expanding macro: Kernel.use/2
web/views/page_view.ex:2: Rumbl.PageView (module)
(elixir) lib/kernel/parallel_compiler.ex:100: anonymous fn/4 in Kernel.ParallelCompiler.spawn_compilers/8
== Compilation error on file web/views/layout_view.ex ==
** (CompileError) web/views/layout_view.ex:2: module Rumbl.Router.Helpers is not loaded and could not be found
expanding macro: Rumbl.Web.__using__/1
web/views/layout_view.ex:2: Rumbl.LayoutView (module)
(elixir) expanding macro: Kernel.use/2
web/views/layout_view.ex:2: Rumbl.LayoutView (module)
(elixir) lib/kernel/parallel_compiler.ex:100: anonymous fn/4 in Kernel.ParallelCompiler.spawn_compilers/8
== Compilation error on file web/controllers/session_controller.ex ==
** (CompileError) web/controllers/session_controller.ex:2: module Rumbl.Router.Helpers is not loaded and could not be found
expanding macro: Rumbl.Web.__using__/1
web/controllers/session_controller.ex:2: Rumbl.SessionController (module)
(elixir) expanding macro: Kernel.use/2
web/controllers/session_controller.ex:2: Rumbl.SessionController (module)
(elixir) lib/kernel/parallel_compiler.ex:100: anonymous fn/4 in Kernel.ParallelCompiler.spawn_compilers/8
I’ve checked and double checked my code against the book, but can’t see anything.
My files for the project are here: https://github.com/bordeltabernacle/learning-phoenix/tree/master/rumbl
As far as I can tell the Rumbl.Auth.init function is there in the auth.ex controller file, and I’m not sure what the Rumbl.Router.Helpers file is or how to load it. When i remove the only new line in the router.ex file, since the app was working, I get the same error.
I’m afraid I don’t yet know enough to troubleshoot this myself.
asked Dec 21, 2015 at 16:53
bordeltabernaclebordeltabernacle
1,5935 gold badges23 silver badges44 bronze badges
I think you should try to clean up deps, then get and compile again before up sever
so try
mix deps.clean --all
mix deps.get
mix deps.compile
mix phoenix.server
Good luck
jdl
17.7k4 gold badges51 silver badges54 bronze badges
answered Dec 21, 2015 at 17:17
2
You’ve got typo in https://github.com/bordeltabernacle/learning-phoenix/blob/master/rumbl/web/controllers/auth.ex
import Comeonin.Bcypt, only: [checkpw: 2]
should be
import Comeonin.Bcrypt, only: [checkpw: 2]
answered Dec 21, 2015 at 17:24
0
You could also delete the _build directory and restart your server with mix phoenix.server (Phoenix 1.2) or mix phx.server (Phoenix 1.3).
Doing this will fetch all dependencies from scratch for the first time. I prefer this method as I don’t need to type a bunch of commands, I just need to delete a directory and re-run the recent command on my terminal..which is mix phx.server. Yeah, I’m lazy.
Good luck.
answered May 12, 2017 at 0:46
dsignrdsignr
2,2952 gold badges35 silver badges45 bronze badges
In my case this error happened because I accidentally created a module in the test directory instead of the lib directory. Moving it to the lib directory fixed it.
answered Apr 6, 2018 at 15:15
ZoltánZoltán
21.2k14 gold badges92 silver badges133 bronze badges
In my umbrella project, I added a new support directory within the tests directory and the .ex modules within were not accessible to my tests.
By default, mix looks only within the lib directory for files to compile. You can add another directory by adding elixirc_paths to project in your mix.exs.
answered Nov 19, 2020 at 22:11
Erion SErion S
1,60318 silver badges24 bronze badges
Я следую за Программой Phoenix book, работая над секцией, чтобы реализовать вход в/из аутентифицированного пользователя, и получаю ошибку, о которой я не знаю, что делать:
mix phoenix.server
Compiled lib/rumbl.ex
Compiled lib/rumbl/repo.ex
Compiled web/channels/user_socket.ex
Compiled web/web.ex
Compiled web/models/user.ex
== Compilation error on file web/router.ex ==
** (UndefinedFunctionError) undefined function: Rumbl.Auth.init/1 (module Rumbl.Auth is not available)
Rumbl.Auth.init([repo: Rumbl.Repo])
(plug) lib/plug/builder.ex:198: Plug.Builder.init_module_plug/3
(plug) lib/plug/builder.ex:186: anonymous fn/4 in Plug.Builder.compile/3
(elixir) lib/enum.ex:1387: Enum."-reduce/3-lists^foldl/2-0-"/3
(plug) lib/plug/builder.ex:186: Plug.Builder.compile/3
web/router.ex:4: (module)
(stdlib) erl_eval.erl:669: :erl_eval.do_apply/6
(elixir) lib/kernel/parallel_compiler.ex:100: anonymous fn/4 in Kernel.ParallelCompiler.spawn_compilers/8
== Compilation error on file lib/rumbl/endpoint.ex ==
** (UndefinedFunctionError) undefined function: Rumbl.Router.init/1 (module Rumbl.Router is not available)
Rumbl.Router.init([])
(plug) lib/plug/builder.ex:198: Plug.Builder.init_module_plug/3
(plug) lib/plug/builder.ex:186: anonymous fn/4 in Plug.Builder.compile/3
(elixir) lib/enum.ex:1387: Enum."-reduce/3-lists^foldl/2-0-"/3
(plug) lib/plug/builder.ex:186: Plug.Builder.compile/3
(phoenix) expanding macro: Phoenix.Endpoint.__before_compile__/1
lib/rumbl/endpoint.ex:1: Rumbl.Endpoint (module)
(elixir) lib/kernel/parallel_compiler.ex:100: anonymous fn/4 in Kernel.ParallelCompiler.spawn_compilers/8
== Compilation error on file web/views/user_view.ex ==
** (CompileError) web/views/user_view.ex:2: module Rumbl.Router.Helpers is not loaded and could not be found
expanding macro: Rumbl.Web.__using__/1
web/views/user_view.ex:2: Rumbl.UserView (module)
(elixir) expanding macro: Kernel.use/2
web/views/user_view.ex:2: Rumbl.UserView (module)
(elixir) lib/kernel/parallel_compiler.ex:100: anonymous fn/4 in Kernel.ParallelCompiler.spawn_compilers/8
== Compilation error on file web/views/error_view.ex ==
** (CompileError) web/views/error_view.ex:2: module Rumbl.Router.Helpers is not loaded and could not be found
expanding macro: Rumbl.Web.__using__/1
web/views/error_view.ex:2: Rumbl.ErrorView (module)
(elixir) expanding macro: Kernel.use/2
web/views/error_view.ex:2: Rumbl.ErrorView (module)
(elixir) lib/kernel/parallel_compiler.ex:100: anonymous fn/4 in Kernel.ParallelCompiler.spawn_compilers/8
== Compilation error on file web/controllers/auth.ex ==
** (CompileError) web/controllers/auth.ex:3: module Comeonin.Bcypt is not loaded and could not be found
(stdlib) erl_eval.erl:669: :erl_eval.do_apply/6
(elixir) lib/kernel/parallel_compiler.ex:100: anonymous fn/4 in Kernel.ParallelCompiler.spawn_compilers/8
== Compilation error on file web/controllers/user_controller.ex ==
** (CompileError) web/controllers/user_controller.ex:2: module Rumbl.Router.Helpers is not loaded and could not be found
expanding macro: Rumbl.Web.__using__/1
web/controllers/user_controller.ex:2: Rumbl.UserController (module)
(elixir) expanding macro: Kernel.use/2
web/controllers/user_controller.ex:2: Rumbl.UserController (module)
(elixir) lib/kernel/parallel_compiler.ex:100: anonymous fn/4 in Kernel.ParallelCompiler.spawn_compilers/8
== Compilation error on file web/controllers/page_controller.ex ==
** (CompileError) web/controllers/page_controller.ex:2: module Rumbl.Router.Helpers is not loaded and could not be found
expanding macro: Rumbl.Web.__using__/1
web/controllers/page_controller.ex:2: Rumbl.PageController (module)
(elixir) expanding macro: Kernel.use/2
web/controllers/page_controller.ex:2: Rumbl.PageController (module)
(elixir) lib/kernel/parallel_compiler.ex:100: anonymous fn/4 in Kernel.ParallelCompiler.spawn_compilers/8
== Compilation error on file web/views/session_view.ex ==
** (CompileError) web/views/session_view.ex:2: module Rumbl.Router.Helpers is not loaded and could not be found
expanding macro: Rumbl.Web.__using__/1
web/views/session_view.ex:2: Rumbl.SessionView (module)
(elixir) expanding macro: Kernel.use/2
web/views/session_view.ex:2: Rumbl.SessionView (module)
(elixir) lib/kernel/parallel_compiler.ex:100: anonymous fn/4 in Kernel.ParallelCompiler.spawn_compilers/8
== Compilation error on file web/views/page_view.ex ==
** (CompileError) web/views/page_view.ex:2: module Rumbl.Router.Helpers is not loaded and could not be found
expanding macro: Rumbl.Web.__using__/1
web/views/page_view.ex:2: Rumbl.PageView (module)
(elixir) expanding macro: Kernel.use/2
web/views/page_view.ex:2: Rumbl.PageView (module)
(elixir) lib/kernel/parallel_compiler.ex:100: anonymous fn/4 in Kernel.ParallelCompiler.spawn_compilers/8
== Compilation error on file web/views/layout_view.ex ==
** (CompileError) web/views/layout_view.ex:2: module Rumbl.Router.Helpers is not loaded and could not be found
expanding macro: Rumbl.Web.__using__/1
web/views/layout_view.ex:2: Rumbl.LayoutView (module)
(elixir) expanding macro: Kernel.use/2
web/views/layout_view.ex:2: Rumbl.LayoutView (module)
(elixir) lib/kernel/parallel_compiler.ex:100: anonymous fn/4 in Kernel.ParallelCompiler.spawn_compilers/8
== Compilation error on file web/controllers/session_controller.ex ==
** (CompileError) web/controllers/session_controller.ex:2: module Rumbl.Router.Helpers is not loaded and could not be found
expanding macro: Rumbl.Web.__using__/1
web/controllers/session_controller.ex:2: Rumbl.SessionController (module)
(elixir) expanding macro: Kernel.use/2
web/controllers/session_controller.ex:2: Rumbl.SessionController (module)
(elixir) lib/kernel/parallel_compiler.ex:100: anonymous fn/4 in Kernel.ParallelCompiler.spawn_compilers/8
Я проверил и дважды проверил свой код против книги, но ничего не вижу.
Мои файлы для проекта находятся здесь: https://github.com/bordeltabernacle/learning-phoenix/tree/master/rumbl
Насколько я могу сказать, функция Rumbl.Auth.init присутствует в файле контроллера auth.ex, и я не уверен, что такое файл Rumbl.Router.Helpers или как его загрузить. Когда я удаляю только новую строку в файле router.ex, так как приложение работает, я получаю ту же ошибку.
Боюсь, я еще не знаю достаточно, чтобы самостоятельно решить эту проблему.
Ответ 1
У вас есть опечатка в https://github.com/bordeltabernacle/learning-phoenix/blob/master/rumbl/web/controllers/auth.ex
import Comeonin.Bcypt, only: [checkpw: 2]
должен быть
import Comeonin.Bcrypt, only: [checkpw: 2]
Ответ 2
Я думаю, вы должны попытаться очистить отпечатки, а затем снова и снова скомпилировать до того, как разорвать
попробуйте
mix deps.clean --all
mix deps.get
mix deps.compile
mix phoenix.server
Удачи.
Ответ 3
Вы также можете удалить каталог _build и перезагрузить сервер с помощью mix phoenix.server (Phoenix 1.2) или mix phx.server (Phoenix 1.3).
В этом случае впервые будут получены все зависимости с нуля. Я предпочитаю этот метод, так как мне не нужно вводить кучу команд, мне просто нужно удалить каталог и повторно запустить недавнюю команду на моем терминале..что это mix phx.server. Да, я ленив.
Удачи.
Продавец
- Статус
-
Оффлайн
- Регистрация
- 5 Июл 2019
- Сообщения
- 505
- Реакции[?]
- 55
- Поинты[?]
- 0
-
#101
Автор темы
Новый видео-обзор нашего приватного чита Phoenix RUST!
Начинающий
- Статус
-
Оффлайн
- Регистрация
- 19 Сен 2021
- Сообщения
- 9
- Реакции[?]
- 3
- Поинты[?]
- 0
-
#102
08.10.2021
[RU] Phoenix для Rust
Обновление под последний патч игры.
[EN] Phoenix for Rust
Updated for the latest game patch.
Начинающий
- Статус
-
Оффлайн
- Регистрация
- 19 Сен 2021
- Сообщения
- 9
- Реакции[?]
- 3
- Поинты[?]
- 0
-
#103
09.10.2021
[RU] Phoenix для Rust
Обновление под последний патч игры.
[EN] Phoenix for Rust
Updated for the latest game patch.
Продавец
- Статус
-
Оффлайн
- Регистрация
- 5 Июл 2019
- Сообщения
- 505
- Реакции[?]
- 55
- Поинты[?]
- 0
-
#104
Автор темы
10.11.2021
[RU] Phoenix Loader:
— Усиление безопасности
— Улучшение стабильности работы
— Оптимизация скорости работы
— Добавление методов очистки следов
— Много других изменений и улучшений
[RU] Phoenix Rust (Norecoil):
— Обновление под новую версию RUST
Всем перекачать загрузчик с сайта
[EU] Phoenix Loader:
— Enhanced security
— Improved stability
— Optimization of work speed
— Adding methods for cleaning traces
— Many other changes and improvements
[EU] Phoenix Rust (Norecoil):
— Update for the new version of RUST
Redownload the loader from the site for all cheats
Пользователь
- Статус
-
Оффлайн
- Регистрация
- 9 Дек 2019
- Сообщения
- 690
- Реакции[?]
- 145
- Поинты[?]
- 0
-
#105
Спасибо, получил ключ на день и улетел на бананы, плохой чит всем не рекомендую!
Последнее редактирование: 12 Ноя 2021
Продавец
- Статус
-
Оффлайн
- Регистрация
- 5 Июл 2019
- Сообщения
- 505
- Реакции[?]
- 55
- Поинты[?]
- 0
-
#106
Автор темы
Спасибо, получил ключ на день и улетел на бананы, плохой чит всем не рекомендую!
Посмотреть вложение 180050
Посмотреть вложение 180051
Здравствуйте.
Приложите пожалуйста скриншот оплаты, и скриншот желтой таблички из стима (должен быть тот же аккаунт что и в сообщении выше).
Так же уточните у кого именно вы приобрели софт. Сколько играли и использовали ли вы на этом аккаунте что то помимо феникса?
Начинающий
- Статус
-
Оффлайн
- Регистрация
- 19 Сен 2021
- Сообщения
- 9
- Реакции[?]
- 3
- Поинты[?]
- 0
-
#107
12.11.2021
[RU] Phoenix для Rust
Исправлена ошибка запуска модуля.
[EN] Phoenix for Rust
Fixed module launch error.
Пользователь
- Статус
-
Оффлайн
- Регистрация
- 9 Дек 2019
- Сообщения
- 690
- Реакции[?]
- 145
- Поинты[?]
- 0
-
#108
Здравствуйте.
Приложите пожалуйста скриншот оплаты, и скриншот желтой таблички из стима (должен быть тот же аккаунт что и в сообщении выше).
Так же уточните у кого именно вы приобрели софт. Сколько играли и использовали ли вы на этом аккаунте что то помимо феникса?
Я же написал, получил ключ на день но рекойла, решил поиграть спуфер не работал питался запускать раз 20 ничего не помогло, только спуфер сменил доски диски местами и всё. А жёлтую табличку я закрыл
Продавец
- Статус
-
Оффлайн
- Регистрация
- 5 Июл 2019
- Сообщения
- 505
- Реакции[?]
- 55
- Поинты[?]
- 0
-
#109
Автор темы
Я же написал, получил ключ на день но рекойла, решил поиграть спуфер не работал питался запускать раз 20 ничего не помогло, только спуфер сменил доски диски местами и всё. А жёлтую табличку я закрыл
У кого получил?
Пользователь
- Статус
-
Оффлайн
- Регистрация
- 9 Дек 2019
- Сообщения
- 690
- Реакции[?]
- 145
- Поинты[?]
- 0
-
#110
Тут, тут дают бесплатно ключ раз в 2 недели на кс раст пабг и ещё что то и я выбрал раст получил ключ зарегался поебался со сауфером и получил бан
Начинающий
- Статус
-
Оффлайн
- Регистрация
- 19 Сен 2021
- Сообщения
- 9
- Реакции[?]
- 3
- Поинты[?]
- 0
-
#111
05.12.2021
[RU] Phoenix для Rust
Обновление под последний патч игры.
[EN] Phoenix for Rust
Updated for the latest game patch.
Начинающий
- Статус
-
Оффлайн
- Регистрация
- 19 Сен 2021
- Сообщения
- 9
- Реакции[?]
- 3
- Поинты[?]
- 0
-
#112
17.12.2021
[RU] Phoenix для Rust
Обновление под последний патч игры.
[EN] Phoenix for Rust
Updated for the latest game patch.
Продавец
- Статус
-
Оффлайн
- Регистрация
- 5 Июл 2019
- Сообщения
- 505
- Реакции[?]
- 55
- Поинты[?]
- 0
-
#113
Автор темы
12.01.2022
[RU] Phoenix для Rust
Обновление под последний патч игры.
[EU] Phoenix for Rust
Updated for the latest game patch.
[!] Подпишитесь на канал в Telegram, чтобы узнавать новости первым: https://t.me/nfkcheats_news
Начинающий
- Статус
-
Оффлайн
- Регистрация
- 13 Май 2017
- Сообщения
- 67
- Реакции[?]
- 15
- Поинты[?]
- 0
-
#114
ты ссылку на оплату 3дня с 7 днями перепутал
Продавец
- Статус
-
Оффлайн
- Регистрация
- 5 Июл 2019
- Сообщения
- 505
- Реакции[?]
- 55
- Поинты[?]
- 0
-
#115
Автор темы
ты ссылку на оплату 3дня с 7 днями перепутал
Исправил
Продавец
- Статус
-
Оффлайн
- Регистрация
- 5 Июл 2019
- Сообщения
- 505
- Реакции[?]
- 55
- Поинты[?]
- 0
-
#116
Автор темы
08.02.2022
[RU] Phoenix для Rust:
К сожалению, почти все наши продукты в данный момент закрыты на обновление. В последнее время мы работали не очень стабильно, поэтому теперь нам нужно время на кардинальные изменения читов. Спуфер продолжает работать.
В данный момент работают: феникс лол, феникс валорант, чит на хант.
Скоро опубликуем новости о наших планах!
Также тут есть некоторые рабочие продукты.
[EU] Phoenix for Rust:
Unfortunately, almost all our products are currently closed for updates. We haven’t been working very consistently lately, so now we need time to make cardinal changes to the cheats. Spoofer continues to work.
Currently working: Phoenix Lol, Phoenix Valorant, Hunt Showdown Cheat.
We will publish news about our plans soon!
Also we have some working products here.
Продавец
- Статус
-
Оффлайн
- Регистрация
- 5 Июл 2019
- Сообщения
- 505
- Реакции[?]
- 55
- Поинты[?]
- 0
-
#117
Автор темы
12.02.2022
[RU] Phoenix для Rust
Обновление под последний патч игры.
[EU] Phoenix for Rust
Updated for the latest game patch.
[!] Подпишитесь на канал в Telegram, чтобы узнавать новости первым: https://t.me/nfkcheats_news
[!] Feel free to subscribe to our Telegram channel and be the first to know about news: https://t.me/nfkcheats_news
Продавец
- Статус
-
Оффлайн
- Регистрация
- 5 Июл 2019
- Сообщения
- 505
- Реакции[?]
- 55
- Поинты[?]
- 0
-
#118
Автор темы
05.10.2022
[RU] Phoenix для Rust
Обновлен и Undetected.
[EU] Phoenix for Rust
Updated and Undetected.
[!] Подпишитесь на канал в Telegram, чтобы узнавать новости первым: https://t.me/nfkcheats_news
[!] Feel free to subscribe to our Telegram channel and be the first to know about news: https://t.me/nfkcheats_news
Я работаю над книгой феникса, работая над своим собственным проектом, и получаю следующую ошибку:
== Compilation error in file web/router.ex ==
** (CompileError) web/router.ex:2: module Phoenix.Auth is not loaded and
could not be found
expanding macro: ComicApp.Web.__using__/1
web/router.ex:2: ComicApp.Router (module)
(elixir) expanding macro: Kernel.use/2
web/router.ex:2: ComicApp.Router (module)
(elixir) lib/kernel/parallel_compiler.ex:198: anonymous fn/4 in
Kernel.ParallelCompiler.spawn_workers/6
При переходе на эти страницы код выглядит так:
defmodule ComicApp.Router do
use ComicApp.Web, :router
pipeline :browser do
plug :accepts, ["html"]
plug :fetch_session
plug :fetch_flash
plug :protect_from_forgery
plug :put_secure_browser_headers
plug ComicApp.Auth, repo: ComicApp.Repo
end
pipeline :api do
plug :accepts, ["json"]
end
scope "/", ComicApp do
pipe_through :browser # Use the default browser stack
get "/", PageController, :index
resources "/users", UserController, only: [:index, :show, :new,
:create]
resources "/sessions", SessionController, only: [:new, :create,
:delete]
end
scope "/manage", ComicApp do
pipe_through [:browser, :authenticate_user]
resources "/comics", ComicController
end
end
это мой файл на GitHub: https://github.com/cggarcia171/ComicBookLibrary
Я работаю над книгой феникса во время работы над собственным проектом, и я получаю эту ошибку:
== Compilation error in file web/router.ex ==
** (CompileError) web/router.ex:2: module Phoenix.Auth is not loaded and
could not be found
expanding macro: ComicApp.Web.__using__/1
web/router.ex:2: ComicApp.Router (module)
(elixir) expanding macro: Kernel.use/2
web/router.ex:2: ComicApp.Router (module)
(elixir) lib/kernel/parallel_compiler.ex:198: anonymous fn/4 in
Kernel.ParallelCompiler.spawn_workers/6
Переходя к этим страницам, код выглядит так:
defmodule ComicApp.Router do
use ComicApp.Web, :routerpipeline :browser do
plug :accepts, ["html"]
plug :fetch_session
plug :fetch_flash
plug :protect_from_forgery
plug :put_secure_browser_headers
plug ComicApp.Auth, repo: ComicApp.Repo
endpipeline :api do
plug :accepts, ["json"]
endscope "/", ComicApp do
pipe_through :browser # Use the default browser stack
get "/", PageController, :index
resources "/users", UserController, only: [:index, :show, :new,
:create]
resources "/sessions", SessionController, only: [:new, :create,
:delete]end
scope "/manage", ComicApp do
pipe_through [:browser, :authenticate_user]
resources "/comics", ComicController
end
end
это мой файл GitHub: https://github.com/cggarcia171/ComicBookLibrary


