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

404 Cannot find any route matching the parent directory route #2310

Closed
Aslemammad opened this issue Mar 25, 2024 · 2 comments
Closed

404 Cannot find any route matching the parent directory route #2310

Aslemammad opened this issue Mar 25, 2024 · 2 comments
Labels
bug Something isn't working upstream

Comments

@Aslemammad
Copy link

Environment

  Wrangler
  System:
    OS: Linux 5.15 Zorin OS 16.3
    CPU: (4) x64 Intel(R) Core(TM) i7-5600U CPU @ 2.60GHz
    Memory: 7.13 GB / 15.51 GB
    Container: Yes
    Shell: 5.8 - /bin/zsh
  Binaries:
    Node: 20.10.0 - ~/.nvm/versions/node/v20.10.0/bin/node
    Yarn: 1.22.21 - ~/.nvm/versions/node/v20.10.0/bin/yarn
    npm: 10.2.3 - ~/.nvm/versions/node/v20.10.0/bin/npm
    pnpm: 8.14.1 - ~/.local/share/pnpm/pnpm
    bun: 1.0.26 - ~/.bun/bin/bun
  Browsers:
    Chrome: 122.0.6261.69

Reproduction

https://stackblitz.com/edit/github-zyrmhm

Describe the bug

Routes tree:

server/routes
├── index.ts
├── [orgOrAuthor]
│   └── [repo]
│       └── [ref]
│           ├── [package].get.ts
│           └── [sha]
│               └── [package].get.ts
├── publish.post.ts
└── webhook.post.ts

/package-org/package-repo/main/123/playground this resolves without any issues.
/package-org/package-repo/main/playground gives cannot find any route matching.

Thank you so much for the amazing library, I'm so productive with Nitro.

Additional context

No response

Logs

No response

@pi0
Copy link
Member

pi0 commented Mar 25, 2024

Thanks for nice reproduction ❤️ Issue should be fixed with radix3@1.1.2 you need to refresh the lockfile.

https://stackblitz.com/edit/github-zyrmhm-789d4d

@pi0 pi0 closed this as completed Mar 25, 2024
@Aslemammad
Copy link
Author

Thank you so much for the fast response!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working upstream
Projects
None yet
Development

No branches or pull requests

2 participants