nav-no-target
{ ok: false, reason: 'no-target', code: 'nav-no-target', url: '…/errors/nav-no-target' }Returned, not thrown, by next(), back() and go(). Nothing is written, and there is no by.
The engine could not name a step to move to. The causes are:
back()on the first reachable step. There is nothing before it;canBackis false here, and a Back button disabled by it never produces this.go(id)with an id that is not a key ofsteps, most often a typo.back()from a step whoseon.backnames a step that does not exist.next()from a step whoseon.nextis a list of{ to, when }entries and no entry’swhenholds. The transition decides where the step leads, so the engine does not guess: add an entry without awhenas the last one - the step to go to otherwise, or'@end'to finish.
next() on the last step of order, with no on.next, is not one of them: it finishes the
wizard, answers { ok: true, to: '@end' } and sets status to done.
Disable Back with canBack rather than handling this result. For an id, correct it or add the
step; validateFlow reports an on.back to a missing step as
target-unknown-step before the wizard ever runs.