Angular 4.0.3: Uncaught TypeError: Unable to read property "apply" from undefined
After updating my app Angular 4.0.2
to, Angular 4.0.3
I get the following error in the Chrome console:
zone.js:1265 Uncaught TypeError: Cannot read property 'apply' of undefined
at XMLHttpRequest.desc.get [as ontimeout] (zone.js:1265)
at XHRLocalObject.AbstractXHRObject._cleanup (abstract-xhr.js:149)
at XMLHttpRequest.xhr.onreadystatechange (abstract-xhr.js:125)
at XMLHttpRequest.wrapFn (zone.js:1230)
at ZoneDelegate.invokeTask (zone.js:398)
at Zone.runTask (zone.js:165)
at XMLHttpRequest.ZoneTask.invoke (zone.js:460)
+3
source to share
1 answer
Temporarily downgrade zone.js
:
npm install zone.js@0.8.7 --save
Details:
Dependency zone.js 0.8.8
is the root cause of the bug, so fix the version in 0.8.7
until it is fixed if it happens when zone # 747 lands.
+7
source to share