I saw this if one of the inputs imports MyApp.Router.Helpersand is itself used in MyApp.Router. This creates a compiler deadlock — a plug is needed to compile the router, but a router (and an auxiliary module) is required to compile the plug-in.
You can fix this by using full calls for the router helpers rather than importing them, i.e.
alias MyApp.Router.Helpers, as: Routes
Routes.foo_path(conn, :create)
source
share