Skip to content

Navigo (^8.11.1) didn't match any of the registered routes #314

@tielebodyn

Description

@tielebodyn

hi, I seem to be having a problem with Navigo 8.11.1.

when I make a singleton of Navigo, I seem to get an error every time I set my rootURL as anything except '/'. I tried http://localhost:1234, which is definitely the correct URL for my local server, but it keeps giving me the ''didn't match any of the registered routes" warning, as you can see in the image. when I use the '/' as root URL it loads my html and JS, but still gives me the same warning (even though it clearly does match my registered route).
I switched to version 7.0.0 and everything works perfectly.
PS: /new-event (from console warning) is a registered route, even though you can't see it an my Index.js

ref: https://stackoverflow.com/questions/73220543/navigo-javascript-routing-every-route-i-register-didnt-match-any-of-the-regist/73302262#73302262

Router.js code:
routes

Index.js:
routes

Console warning:
Warnings

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions