Stepper with target ES6 - markForCheck Error
See original GitHub issueBug
Using a horizontal stepper produces an error:
ERROR TypeError: Cannot read property 'markForCheck' of undefined at MatHorizontalStepper._stateChanged (stepper.js:352)
There’s a Stackoverflow question (https://stackoverflow.com/questions/48036238/stepper-angular-material-cannot-read-property-markforcheck-of-undefined) . Both workarounds do work.
What is the expected behavior?
Should work out of the box with ES6 and plain ng serve
.
What are the steps to reproduce?
Here’s a stackblitz, however it’s working - probably they’re not using plain ng serve
but ng build
?
https://stackblitz.com/edit/angular-ancwcw
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
ng: 7.0 ts: 3.1.3 Windows 10
EDIT: The stackblitz did not save my changes properly … see attachment instead. angular-5furhj.zip
EDIT 2: Updated stackblitz now working. I needed to create an account to save. Same as attachement.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:6 (1 by maintainers)
Top GitHub Comments
I am experiencing the same issue. Angular: 7.0.0 Angular/Material: 7.0.0 Typescript: 3.1.3 OS: Ubuntu 16.04
My tsconfig.json file:
Chrome produces this error message:
Firefox produces this error message:
ERROR TypeError: "this._changeDetectorRef is undefined"
Switching
target
back toES5
as a workaround fix.This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.