-
Notifications
You must be signed in to change notification settings - Fork 79
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
elixir no route found for GET /torch #93
Comments
Hey @mattgaudio 👋 Thx for giving torch a try! Yep, torch doesn't expose anything at |
I get this error after running the torch.gen.html generator. when trying to navigate to the index. function Routes.static_path/2 is undefined (module Routes is not available) |
@mattgaudio Ah, your app must not have been generated with phoenix 1.3. In your |
I generated using phx 1.3 def view do
end |
@mattgaudio Have you updated your plug(
Plug.Static,
at: "/torch",
from: {:torch, "priv/static"},
gzip: true,
cache_control_for_etags: "public, max-age=86400"
) |
I ran into the same issue. Not sure if this is a Phoenix |
i got this
before
and
in router.ex but i still can't load |
@dfang Please refer to the README installation/setup instructions. Your |
hi, i got another error when i started from scratch
both does torch support phoenix v1.5.8 ? |
It could be that Phoenix has again switched how they handled layouts. In v1.5 they changed somethings that were undocumented, and perhaps they have changed them again in a patch release. You can see the discussions in #168, #169, and #172 where this was modified for 1.5 (at the time 1.5.1). Perhaps Phoenix has changed internals again. I'll have to look into it. From a quick test locally, in spinning up a new app on Phoenix 1.5.8 it does appear that is the case. You can go into your generated torch controller and change the |
@dfang It appears that maybe this issue is dependent on whether or not the Phoenix 1.5 application was generated with the When the application is not using LiveView, the torch controllers can/should just use the We will have to made some updates to the codebase so that the Torch generators are a bit more sophisticated for each case. |
@dfang please pull down the newly released version 3.6.1 and let me know if you are still having the same problems. |
thanks, it works when just replace |
Followed the suggestions here. It still doesn't seem to be able to find the style files. |
@osluf can you provide any more details? Your config and endpoint listings maybe? The current versions of Torch both work on a baseline Phoenix project, so we'd need some more info about your current setup, or a sample repository with a minimal failing example to take a look. |
Did you manage to fix this problem? |
After torch install I get no route found when pointing the browser /torch.
The text was updated successfully, but these errors were encountered: