analogjs / analog

The fullstack meta-framework for Angular. Powered by Vite and Nitro
https://analogjs.org
MIT License
2.59k stars 250 forks source link

Route Groups not working as expected #1385

Closed jochri3 closed 1 month ago

jochri3 commented 1 month ago

Please provide the environment you discovered this bug in.

Windows 11/ Mac OS Sequoia

Which area/package is the issue in?

create-analog

Description

The project is very good, but there are still to much bugs.

I was reading the document about Group Routes, and i've created the following structure: image

When i navigate to /signin or /signup for less than a second, it show the content and redirect to the root path with no content. image

Please provide the exception or error you saw

main.ts:7 ERROR RuntimeError: NG04002: Cannot match any routes. URL Segment: 'signin'
    at Recognizer.noMatchError (@angular_router.js?v=6d2f1b3c:2808:12)
    at @angular_router.js?v=6d2f1b3c:2842:20
    at chunk-6ITLZOOH.js?v=6d2f1b3c:2726:33
    at OperatorSubscriber2._this._error (chunk-6ITLZOOH.js?v=6d2f1b3c:830:9)
    at Subscriber2.error (chunk-6ITLZOOH.js?v=6d2f1b3c:534:12)
    at Subscriber2._error (chunk-6ITLZOOH.js?v=6d2f1b3c:557:24)
    at Subscriber2.error (chunk-6ITLZOOH.js?v=6d2f1b3c:534:12)
    at Subscriber2._error (chunk-6ITLZOOH.js?v=6d2f1b3c:557:24)
    at Subscriber2.error (chunk-6ITLZOOH.js?v=6d2f1b3c:534:12)
    at Subscriber2._error (chunk-6ITLZOOH.js?v=6d2f1b3c:557:24)
Zone - Promise.then     
(anonymous) @   main.ts:7
Show 396 more frames


### Other information

_No response_

### I would be willing to submit a PR to fix this issue

- [ ] Yes
- [ ] No
brandonroberts commented 1 month ago

I created this exact structure and it works fine. You can try deleting the node_modules/.vite folder and hard refereshing your browser.

https://github.com/brandonroberts/analog-signin-signup