-- but resolve takes a string not an object, which the other pages seem to agree on. Guessing this is from an older veresion. It gives out a very cryptic substring error, which took me quite a little bit to figure out the doc was wrong and it was not something I was doing.
This is the line from the two examples:
router.resolve({ pathname: '/one' }).then(component => {
-- but
resolve
takes a string not an object, which the other pages seem to agree on. Guessing this is from an older veresion. It gives out a very cryptic substring error, which took me quite a little bit to figure out the doc was wrong and it was not something I was doing.