Skip to content

Issue when add the canenter feature. #259

Open

Description

@wkjesus

In some cases when using the canenter when validate the step, some times y show this error:

ReferenceError
columnNumber: 82
fileName: "http://localhost:8000/node_modules/angular-wizard/dist/angular-wizard.js"
lineNumber: 236
message: "_ is not defined"

i resolve change this line of code
//original
//$scope.$emit('wizard:stepChangeFailed', {step: step, index: _.indexOf($scope.getEnabledSteps(), step)});
//changed
$scope.$emit('wizard:stepChangeFailed', {step: step, index:stepIdx(step)});

in other issues it mentioned the dependency of lodash.underscore, maybe this line correspond on that changed that doesnt update. Hope this helps.

Activity

  1. ericreis commented on Mar 20, 2018

    @ericreis

    I am getting this error as well. Have you managed to fix it?

  2. wkjesus commented on Mar 20, 2018

    @wkjesus
    Author

    i fix it like this
    open angular-wizard.js and comment this line
    //original
    //$scope.$emit('wizard:stepChangeFailed', {step: step, index: _.indexOf($scope.getEnabledSteps(), step)});

    and replace with this one
    $scope.$emit('wizard:stepChangeFailed', {step: step, index:stepIdx(step)});

  3. kruthi12434354657687 commented on Jul 23, 2018

    @kruthi12434354657687

    /node_modules/angular2-wizard/index"' has no exported member 'FormWizardNextModule'.

    please help with this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions