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

Phoenix example #77

Closed
mhaagens opened this issue Apr 3, 2024 · 2 comments · Fixed by #78
Closed

Phoenix example #77

mhaagens opened this issue Apr 3, 2024 · 2 comments · Fixed by #78

Comments

@mhaagens
Copy link

mhaagens commented Apr 3, 2024

Hi! I'm trying to get this set up in a Phoenix application, but can't seem to get the hang of it.
Getting this error

** (Mix) Could not start application inngest: exited in: Inngest.Test.Application.start(:normal, [])
    ** (EXIT) an exception was raised:
        ** (UndefinedFunctionError) function Inngest.Test.Application.start/2 is undefined (module Inngest.Test.Application is not available)
            Inngest.Test.Application.start(:normal, [])
            (kernel 9.0.2) application_master.erl:293: :application_master.start_it_old/4

I've added the router like so;

defmodule MyAppWeb.Router do
  use MyAppWeb, :router
  use Inngest.Router, :phoenix

  pipeline :api do
    plug :accepts, ["json"]
  end

  scope "/", MyAppWebWeb do
    inngest("/api/inngest", path: "inngest/**/*.ex")
    forward "/api", GraphQL.Router
  end
end
@darwin67
Copy link
Owner

Hey there, sorry for not noticing this issue earlier.

That error is me mistakenly added a test application as part of the release, so that's why it's crashing.
There's a fix in #78

darwin67 added a commit that referenced this issue May 15, 2024
resolves #77 

The `Test.Application` is causing apps that included this library to
crash on boot, because it's not compiled as part of the release.

Remove it so it no longer attempts to boot with
`Inngest.Test.Application`.
`v0.2.0` is essentially useless at this point, so it should be yanked
once this fix is out.

Update with some minor changes to make it comply to the latest spec.

---------

Co-authored-by: Darwin D Wu <darwin67@users.noreply.github.com>
@darwin67
Copy link
Owner

Fix is released with 0.2.1

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

Successfully merging a pull request may close this issue.

2 participants