question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Wizard not loading components for second time

See original GitHub issue

Am getting following error when calling the wizard component second time

Console Error

ERROR Error: The default step index 2 is located after a non optional step
    at StrictNavigationMode.webpackJsonp.../../../../ng2-archwizard/dist/navigation/strict-navigation-mode.js.StrictNavigationMode.reset (vendor.bundle.js:68023)
    at WizardState.webpackJsonp.../../../../ng2-archwizard/dist/navigation/wizard-state.model.js.WizardState.initialize (vendor.bundle.js:68168)
    at WizardComponent.webpackJsonp.../../../../ng2-archwizard/dist/components/wizard.component.js.WizardComponent.ngAfterContentInit (vendor.bundle.js:66545)
    at callProviderLifecycles (vendor.bundle.js:147388)
    at callElementProvidersLifecycles (vendor.bundle.js:147369)
    at callLifecycleHooksChildrenFirst (vendor.bundle.js:147353)
    at checkAndUpdateView (vendor.bundle.js:148465)
    at callViewAction (vendor.bundle.js:148830)
    at execEmbeddedViewsAction (vendor.bundle.js:148788)
    at checkAndUpdateView (vendor.bundle.js:148463)

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
madoarcommented, Jan 23, 2018

@kahovn sorry for my late answer.

The message suggests that you want to set the third step as the default step. The problem is, that either the first or the second step is not marked as optional. To fix the problem you can either mark both the first and second step as optional, or set the navigation mode of the wizard to free.

I don’t see your code. Can you please check that it’s inserted correctly inside your message?

0reactions
sagunpandeycommented, Mar 26, 2019

@kahovn sorry for my late answer.

The message suggests that you want to set the third step as the default step. The problem is, that either the first or the second step is not marked as optional. To fix the problem you can either mark both the first and second step as optional, or set the navigation mode of the wizard to free.

I don’t see your code. Can you please check that it’s inserted correctly inside your message?

For example, if we select index 2 as the default index, can we mark step 0 and 1 as done while initiating the wizard?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Wizard step lazy loading · Issue #62 - GitHub
Hi, is there a way to lazy load components inside a wizard-step? For example, I have 2 wizard-step each one with a custom...
Read more >
How to fix "Install wizard can't find the proper ... - YouTube
How to install a driver that is not designed for the current version of the operating system.
Read more >
I am not able to load component dynamically in every steps in ...
I want to load components and steps both dynamically. my requirement is if DataSource component have 2 steps then it should load only...
Read more >
How to load multiple components with the ... - Jazz.net
To load all the components in the RWS into a sandbox using the Load wizard with the option "Load the root folders of...
Read more >
Common Issues with the SQL Server Import and Export Wizard
Here are a few issues I've found while loading data from one SQL Server database into another. Identity Columns. The wizard doesn't treat...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found