Comments (7)
adding
phoenix_view
to the mix didn't help me eitherI keep getting
UndefinedFunctionError at GET /admin function AppWeb.Router.Helpers.kaffy_dashboard_path/2 is undefined (module AppWeb.Router.Helpers is not available)
Looks like the AppWeb.Router.Helpers
module is not generated by default in 1.7. It can be enabled by passing helpers: true
to use Phoenix.Router
in app_web.ex
def router do
quote do
use Phoenix.Router, helpers: true
I'm then faced with another error but unsure if it's a Kaffy issue or I configured something incorrectly. I'll post more detail if I actually determine.
(exit) an exception was raised:
** (MatchError) no match of right hand side value: :undefined
(kaffy 0.9.4) lib/kaffy/utils.ex:370: Kaffy.Utils.setup_resources/0
(kaffy 0.9.4) lib/kaffy/utils.ex:142: Kaffy.Utils.contexts/1
(kaffy 0.9.4) lib/kaffy/resource_admin.ex:323: Kaffy.ResourceAdmin.collect_widgets/1
(kaffy 0.9.4) lib/kaffy_web/templates/home/index.html.eex:14: KaffyWeb.HomeView."index.html"/1
(phoenix_template 1.0.1) lib/phoenix/template.ex:197: Phoenix.Template.render_within_layout/4
(phoenix_template 1.0.1) lib/phoenix/template.ex:126: Phoenix.Template.render_to_iodata/4
(phoenix 1.7.1) lib/phoenix/controller.ex:1005: anonymous fn/5 in Phoenix.Controller.template_render_to_iodata/4
(telemetry 1.2.1) /home/aodhan/development/pipe-spark/projects/leadstrom/leadstrom/deps/telemetry/src/telemetry.erl:321: :telemetry.span/3
(phoenix 1.7.1) lib/phoenix/controller.ex:971: Phoenix.Controller.render_and_send/4
(kaffy 0.9.4) lib/kaffy_web/controllers/home_controller.ex:1: KaffyWeb.HomeController.action/2
(kaffy 0.9.4) lib/kaffy_web/controllers/home_controller.ex:1: KaffyWeb.HomeController.phoenix_controller_pipeline/2
(phoenix 1.7.1) lib/phoenix/router.ex:425: Phoenix.Router.__call__/5
(leadstrom 0.1.0) lib/leadstrom_web/endpoint.ex:1: LeadstromWeb.Endpoint.plug_builder_call/2
(leadstrom 0.1.0) lib/plug/debugger.ex:136: LeadstromWeb.Endpoint."call (overridable 3)"/2
(leadstrom 0.1.0) lib/leadstrom_web/endpoint.ex:1: LeadstromWeb.Endpoint.call/2
(phoenix 1.7.1) lib/phoenix/endpoint/sync_code_reload_plug.ex:22: Phoenix.Endpoint.SyncCodeReloadPlug.do_call/4
(plug_cowboy 2.6.0) lib/plug/cowboy/handler.ex:11: Plug.Cowboy.Handler.init/2
(cowboy 2.9.0) /home/aodhan/development/pipe-spark/projects/leadstrom/leadstrom/deps/cowboy/src/cowboy_handler.erl:37: :cowboy_handler.execute/2
(cowboy 2.9.0) /home/aodhan/development/pipe-spark/projects/leadstrom/leadstrom/deps/cowboy/src/cowboy_stream_h.erl:306: :cowboy_stream_h.execute/3
(cowboy 2.9.0) /home/aodhan/development/pipe-spark/projects/leadstrom/leadstrom/deps/cowboy/src/cowboy_stream_h.erl:295: :cowboy_stream_h.request_process/3
Update:
Was indeed a layer 8 (user) error. Typo in config, it was a bad otp_app
atom. Things seem to be working, the kaffy dashboard is rendering and I can see my schemas.
from kaffy.
Finally understood the issue. and made a pull request to update the readme
from kaffy.
adding phoenix_view
to the mix didn't help me either
I keep getting UndefinedFunctionError at GET /admin function AppWeb.Router.Helpers.kaffy_dashboard_path/2 is undefined (module AppWeb.Router.Helpers is not available)
from kaffy.
Nah, this need core code update I think. I'm hoping to have a look soon.
from kaffy.
from kaffy.
still bumping into this problem since hexdocs isn't updated.
from kaffy.
still bumping into this problem since hexdocs isn't updated.
make a pull request. or which hexdoc are you talking about
from kaffy.
Related Issues (20)
- [BUG] String Arrays aren't decoded from JSON HOT 2
- [BUG] Automatically setting belongs_to fields when nil HOT 3
- [FEATURE-REQUEST] Bulk Delete HOT 1
- [FEATURE-REQUEST] custom_index_query should receive all rather than paged HOT 1
- [FEATURE-REQUEST] Have a way to call a custom attribute in show/edit/create
- [FEATURE-REQUEST] - resolve deprecation warnings in Phoenix 1.7 HOT 1
- [FEATURE-REQUEST] allow to modify auto-detected resources HOT 1
- [BUG] :readonly option not working HOT 1
- [FEATURE-REQUEST] Hide action buttons in show template HOT 1
- Unexpected error `Enumerable not implemented for nil of type Atom` HOT 3
- [BUG] Crash occurs when a schema has a `:page` field or association
- [FEATURE-REQUEST] Config option to turn off bulk delete HOT 6
- [BUG] readonly also not working with dropdown fields HOT 1
- [BUG] Resource creation errors when schema contains {:array, Ecto.Enum} field ((FunctionClauseError) no function clause matching in String.length/1) HOT 2
- [BUG] create action broken HOT 3
- [BUG] (UndefinedFunctionError) function :ping_erlang.__info__/1 is undefined or private HOT 2
- How can I make Main Dashboard widgets? HOT 2
- How do I change the `default_actions/1` for all schemas at once?
- [Feature] Phoenix HTML 4.0 not supported HOT 17
- [FEATURE-REQUEST] Role-based admins HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kaffy.