Skip to content

Missing named routes throw TypeErrors #1386

Closed
@Xcelled

Description

@Xcelled

Version

2.5.2

Reproduction link

http://jsfiddle.net/qkco53b9/1/

Steps to reproduce

Run the example. Look at the console.

What is expected?

Inserting a router link to a named route that doesn't exist should warn.

What is actually happening?

The console spews both warnings about the missing named routes and errors about not being able to access the regex property of a route.


I'm building an SPA and inserting placeholder links to pages I haven't built yet.

It looks like the problem might be here:

const paramNames = record.regex.keys
. Seems the matcher still tries to proceed even if there's no record.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions