Code Monkey home page Code Monkey logo

Comments (7)

AodhanHayter avatar AodhanHayter commented on August 16, 2024 7

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)

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.

drobban avatar drobban commented on August 16, 2024 6

Finally understood the issue. and made a pull request to update the readme

from kaffy.

maysam avatar maysam commented on August 16, 2024 1

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.

ghenry avatar ghenry commented on August 16, 2024

Nah, this need core code update I think. I'm hoping to have a look soon.

from kaffy.

ghenry avatar ghenry commented on August 16, 2024

from kaffy.

KristerV avatar KristerV commented on August 16, 2024

still bumping into this problem since hexdocs isn't updated.

from kaffy.

drobban avatar drobban commented on August 16, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.