maiyaporn / angular2-wizard

Angular2 - Form Wizard Component
118 stars 119 forks source link

Facing problem in webpack #34

Open ajmeracp opened 6 years ago

ajmeracp commented 6 years ago

$ webpack Hash: 685fcea119a85c662b0351329768da09b9a4778d Version: webpack 2.5.1 Child Hash: 685fcea119a85c662b03 Time: 21550ms Asset Size Chunks Chunk Names main-client.js 84.6 kB 0 [emitted] main-client main-client.js.map 94.1 kB 0 [emitted] main-client

ERROR in [at-loader] ./node_modules/angular2-wizard/src/wizard.component.ts:63:5
    TS2322: Type 'WizardStepComponent | undefined' is not assignable to type 'WizardStepComponent'.
  Type 'undefined' is not assignable to type 'WizardStepComponent'.

Child Hash: 51329768da09b9a4778d Time: 23050ms Asset Size Chunks Chunk Names main-server.js 1.87 MB 0 [emitted] [big] main-server

ERROR in [at-loader] ./node_modules/angular2-wizard/src/wizard.component.ts:63:5
    TS2322: Type 'WizardStepComponent | undefined' is not assignable to type 'WizardStepComponent'.
  Type 'undefined' is not assignable to type 'WizardStepComponent'.
ajmeracp commented 6 years ago

Meanwhile I have changed it to :

get activeStep(): WizardStepComponent { var activeStep : any; for(var i=0; i < this._steps.length; i++){ if(this._steps[i].isActive) { activeStep = this._steps[i]; break; } } return activeStep; }