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

Bug Report: "NotFound" Error When Running cargo leptos serve on Workspace Example #2867

Closed
neotheprogramist opened this issue Aug 20, 2024 · 3 comments

Comments

@neotheprogramist
Copy link

Describe the bug

When running cargo leptos serve and opening the browser at localhost:3000, the following error is encountered:

Errors: [
    NotFound,
]

This error is printed in error_template.rs, line 45, and it is unclear why this error appears.

Leptos Dependencies

leptos = { version = "0.6.14" }
leptos_meta = { version = "0.6.14" }
leptos_router = { version = "0.6.14" }
leptos_axum = { version = "0.6.14" }

To Reproduce

Steps to reproduce the behavior:

  1. Clone the repository from leptos-playground.
  2. Ensure the setup is unmodified and based on the workspace example.
  3. Run cargo leptos serve.
  4. Open a browser and navigate to localhost:3000.
  5. Observe the "NotFound" error in the logs.

Expected behavior

The server should start without errors, and the application should be accessible via localhost:3000 without encountering the "NotFound" error.

Screenshots

N/A

Additional context

The issue occurs in a repository with a minimal example available here. The setup is essentially the workspace example without any modifications from leptos-rs/start-axum-workspace.

@gbj
Copy link
Collaborator

gbj commented Aug 20, 2024

Cloned your repo and ran cargo leptos serve. I don't see any errors or logs.

Could you clarify which cargo leptos --version you are using?

@benwis
Copy link
Contributor

benwis commented Aug 21, 2024

Cloned your repo and ran cargo leptos serve. I don't see any errors or logs.

Could you clarify which cargo leptos --version you are using?

Guessing this is happening because you've enabled hashed file output, which is currently having issues in workspaces

@neotheprogramist
Copy link
Author

@gbj @benwis
Hi, thank you for replies, I'm using cargo-leptos 0.2.19 on mac os and using Chrome to open it.
Error appears in console in which you run cargo leptos serve randomly - whole website works but we get this messages.
I think it has something to do with Router

@gbj gbj closed this as not planned Won't fix, can't repro, duplicate, stale Oct 20, 2024
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

No branches or pull requests

3 participants