Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Angular 4.0.3: Uncaught TypeError: Cannot read property 'apply' of undefined

After upgrading my Angular 4.0.2 application 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)
like image 910
Jan Nielsen Avatar asked Mar 12 '26 00:03

Jan Nielsen


1 Answers

Temporarily downgrade zone.js:

    npm install [email protected] --save

Details:

The zone.js 0.8.8 dependency is the root cause of the error, so fix the version at 0.8.7 until this is fixed which should happen when zone#747 lands.

like image 128
Jan Nielsen Avatar answered Mar 14 '26 19:03

Jan Nielsen



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!