Replies: 2 comments
-
You need to add a controller here: def shell(conn, _params), do: render(conn, :shell)
def navigation_example(conn, _params), do: render(conn, :navigation_example) I think the answer by @bartvdbraak is AI generated. Also this it not LiveSvelte specific so closing the issue |
Beta Was this translation helpful? Give feedback.
0 replies
-
The things we forget we did a month later. Creating a dead view requires updating and creating how many files? Thanks for the reminder! I knew it was something dumb |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
My project was working fine but I seem to have broken something. I'm not able to add any more heex templates.
I added the route /navigationExample to:
https://github.com/dev-guy/phoenix-ash-svelte-flowbite/blob/main/lib/kantan_web/router.ex
It is a dead view has nothing to do with Svelte.
https://github.com/dev-guy/phoenix-ash-svelte-flowbite/blob/main/lib/kantan_web/controllers/page_html/navigation_example.html.heex
When I try to go to /navigationExample I get the error:
The same happens with the component I added that is supposed to load Shell.svelte. The route is /svelte/shell.
https://github.com/dev-guy/phoenix-ash-svelte-flowbite/blob/main/lib/kantan_web/controllers/page_html/shell.html.heex
The error is:
Given that Mermaid.svelte etc. works fine (invoked by https://github.com/dev-guy/phoenix-ash-svelte-flowbite/blob/main/lib/kantan_web/controllers/page_html/mermaid.html.heex) and follows the same pattern, I'm not sure what happened.
I even started with a clean 'clone' and built everything from scratch. Same problem.
Beta Was this translation helpful? Give feedback.
All reactions