You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I originally found this expression on your Riot-SSR example, then I used it for two years in production with Riot 7.1.0. That's why now I'm trying to migrate :D
How would you tag this issue?
Question
Bug
Discussion
Feature request
Tip
Enhancement
Performance
The text was updated successfully, but these errors were encountered:
steevepay
changed the title
Riot with Riot-route crashes on 404
Riot coupled with Riot-route crashes on the latest version
Apr 25, 2024
I tried to migrate to the latest version:
Riot 7.1.0
toRiot 9.1.5
@riotjs/route 8.0.2
to@riotjs/route 9.1.5
However the routing crashes, and pages are replicated.
The Riot app tries to check if the route exists, if yes, it prints the component, otherwise it display a 404 component.
To reproduce the issue, I created a repository with the minimum of code, the error is on the branch
riot_route_error
(not onmain
):https://github.com/steevepay/riot9-issue/tree/riot_route_error
Clone the repo and install NPM packages:
Then start vite:
Then visit the URL, then you will see the following error:
![Screenshot 2024-04-25 at 13 43 38](https://private-user-images.githubusercontent.com/16964532/325560264-ad26f6df-e012-4bd4-8935-1c35b808995a.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjA1NjkyMDksIm5iZiI6MTcyMDU2ODkwOSwicGF0aCI6Ii8xNjk2NDUzMi8zMjU1NjAyNjQtYWQyNmY2ZGYtZTAxMi00YmQ0LTg5MzUtMWMzNWI4MDg5OTVhLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MDklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzA5VDIzNDgyOVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTMxYzZmYTJkY2E5ZTYzMjEzZTJmMTkyZjAzZDM5YjA5M2ViYTFjN2FhNzlkZTE1NzQxYzA3ZmM1ZjhmYjkwMzUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.MvVR_129RNhPf8v1GHqoYZ2vRe-lw8UP5bQYSMtsgto)
The error is thrown from the
index.riot
file, at the following line:I originally found this expression on your Riot-SSR example, then I used it for two years in production with
Riot 7.1.0
. That's why now I'm trying to migrate :DThe text was updated successfully, but these errors were encountered: