Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot read property '__zone_symbol__ON_PROPERTYreadystatechange' of null #7502

Closed
lafama opened this issue Aug 25, 2017 · 18 comments · Fixed by angular/zone.js#887
Closed

Comments

@lafama
Copy link

lafama commented Aug 25, 2017

Bug Report or Feature Request (mark with an x)

- [x ] bug report -> please search issues before submitting
- [ ] feature request

Versions.

@angular/cli: 1.3.2
node: 8.4.0
os: darwin x64

Repro steps.

update to the latest CLI and
"@angular/animations": "^4.3.6",
"@angular/cli": "^1.3.2",
"@angular/common": "^4.3.6",
"@angular/compiler": "^4.3.6",
"@angular/compiler-cli": "^4.3.6",
"@angular/core": "^4.3.6",
"@angular/forms": "^4.3.6",
"@angular/http": "^4.3.6",
"@angular/platform-browser": "^4.3.6",
"@angular/platform-browser-dynamic": "^4.3.6",
"@angular/router": "^4.3.6"

The log given by the failure.

core.es5.js:1020 ERROR TypeError: Cannot read property '__zone_symbol__ON_PROPERTYreadystatechange' of null
at wrapFn (zone.js:1074)
at HTMLDocument.DocumentMonitor.document.onreadystatechange [as __zone_symbol__ON_PROPERTYreadystatechange] (eval at webpackJsonp.../../../../script-loader/addScript.js.module.exports (addScript.js:9), :697:80)
at HTMLDocument.wrapFn (zone.js:1075)
at ZoneDelegate.webpackJsonp.../../../../zone.js/dist/zone.js.ZoneDelegate.invokeTask (zone.js:425)
at Object.onInvokeTask (core.es5.js:3881)
at ZoneDelegate.webpackJsonp.../../../../zone.js/dist/zone.js.ZoneDelegate.invokeTask (zone.js:424)
at Zone.webpackJsonp.../../../../zone.js/dist/zone.js.Zone.runTask (zone.js:192)
at ZoneTask.webpackJsonp.../../../../zone.js/dist/zone.js.ZoneTask.invokeTask [as invoke] (zone.js:499)
at invokeTask (zone.js:1427)
at HTMLDocument.globalZoneAwareCallback (zone.js:1445)
defaultErrorLogger @ core.es5.js:1020
webpackJsonp.../../../core/@angular/core.es5.js.ErrorHandler.handleError @ core.es5.js:1080
next @ core.es5.js:4503
schedulerFn @ core.es5.js:3635
webpackJsonp.../../../../rxjs/Subscriber.js.SafeSubscriber.__tryOrUnsub @ Subscriber.js:238
webpackJsonp.../../../../rxjs/Subscriber.js.SafeSubscriber.next @ Subscriber.js:185
webpackJsonp.../../../../rxjs/Subscriber.js.Subscriber._next @ Subscriber.js:125
webpackJsonp.../../../../rxjs/Subscriber.js.Subscriber.next @ Subscriber.js:89
webpackJsonp.../../../../rxjs/Subject.js.Subject.next @ Subject.js:55
webpackJsonp.../../../core/@angular/core.es5.js.EventEmitter.emit @ core.es5.js:3621
(anonymous) @ core.es5.js:3912
webpackJsonp.../../../../zone.js/dist/zone.js.ZoneDelegate.invoke @ zone.js:392
webpackJsonp.../../../../zone.js/dist/zone.js.Zone.run @ zone.js:142
webpackJsonp.../../../core/@angular/core.es5.js.NgZone.runOutsideAngular @ core.es5.js:3844
onHandleError @ core.es5.js:3912
webpackJsonp.../../../../zone.js/dist/zone.js.ZoneDelegate.handleError @ zone.js:396
webpackJsonp.../../../../zone.js/dist/zone.js.Zone.runTask @ zone.js:195
webpackJsonp.../../../../zone.js/dist/zone.js.ZoneTask.invokeTask @ zone.js:499
invokeTask @ zone.js:1427
globalZoneAwareCallback @ zone.js:1445
core.es5.js:1020 ERROR TypeError: Cannot read property '__zone_symbol__ON_PROPERTYreadystatechange' of null
at wrapFn (zone.js:1074)
at HTMLDocument.DocumentMonitor.document.onreadystatechange [as __zone_symbol__ON_PROPERTYreadystatechange] (eval at webpackJsonp.../../../../script-loader/addScript.js.module.exports (addScript.js:9), :697:80)
at HTMLDocument.wrapFn (zone.js:1075)
at ZoneDelegate.webpackJsonp.../../../../zone.js/dist/zone.js.ZoneDelegate.invokeTask (zone.js:425)
at Object.onInvokeTask (core.es5.js:3881)
at ZoneDelegate.webpackJsonp.../../../../zone.js/dist/zone.js.ZoneDelegate.invokeTask (zone.js:424)
at Zone.webpackJsonp.../../../../zone.js/dist/zone.js.Zone.runTask (zone.js:192)
at ZoneTask.webpackJsonp.../../../../zone.js/dist/zone.js.ZoneTask.invokeTask [as invoke] (zone.js:499)
at invokeTask (zone.js:1427)
at HTMLDocument.globalZoneAwareCallback (zone.js:1445)

Desired functionality.

No Error should be logged in the console

Mention any other details that might be useful.

@sha-N
Copy link

sha-N commented Aug 25, 2017

Had the same issue after the update

running npm install --save zone.js@0.8.16 seems to solve that

@mhadaily
Copy link
Contributor

mhadaily commented Aug 25, 2017

Had the same issue and fixed with zone.js@0.8.16

I also had a LOOP of "RangeError: Maximum call stack size exceeded" due to the issue

Versions.
@angular/cli: 1.3.2
node: 8.4.0
npm : 5.3.0
os: darwin x64

Repro steps.
update to the latest CLI and
"@angular/animations": "^4.3.6",
"@angular/cli": "^1.3.2",
"@angular/common": "^4.3.6",
"@angular/compiler": "^4.3.6",
"@angular/compiler-cli": "^4.3.6",
"@angular/core": "^4.3.6",
"@angular/forms": "^4.3.6",
"@angular/http": "^4.3.6",
"@angular/platform-browser": "^4.3.6",
"@angular/platform-browser-dynamic": "^4.3.6",
"@angular/router": "^4.3.6"
"zone.js: 0.8.17"

Enabled polyfills

/** IE9, IE10 and IE11 requires all of the following polyfills. **/
import 'core-js/es6/symbol';
import 'core-js/es6/object';
import 'core-js/es7/object';
import 'core-js/es6/function';
import 'core-js/es6/parse-int';
import 'core-js/es6/parse-float';
import 'core-js/es6/number';
import 'core-js/es6/math';
import 'core-js/es6/string';
import 'core-js/es6/date';
import 'core-js/es6/array';
import 'core-js/es7/array';
import 'core-js/es6/regexp';
import 'core-js/es6/map';
import 'core-js/es6/set';

/** IE10 and IE11 requires the following for NgClass support on SVG elements */
import 'classlist.js'; // Run npm install --save classlist.js.

/** IE10 and IE11 requires the following to support @angular/animation. */
import 'web-animations-js'; // Run npm install --save web-animations-js.

/** Evergreen browsers require these. **/
import 'core-js/es6/reflect';
import 'core-js/es7/reflect';

Screen_Shot_2017_08_24_at_5_43_35_PM

@JiaLiPassion
Copy link
Contributor

@lafama, @mhadaily , could you provide a reproduce repo?

@mhadaily
Copy link
Contributor

@JiaLiPassion
Copy link
Contributor

@mhadaily , got it, I will look into it.
@lafama, in your case, you also use NewRelic, is that right?

@lafama
Copy link
Author

lafama commented Aug 25, 2017

@JiaLiPassion i don't use NewRelic and @sha-N seems to have fixed the issue for now :-)

@JiaLiPassion
Copy link
Contributor

@lafama. Could you provide a reproduce repo? Thanks

@JiaLiPassion
Copy link
Contributor

@mhadaily , @lafama, could you try the attached zone.js.zip resolved the issue or not?
zone.js.zip

@lafama
Copy link
Author

lafama commented Aug 26, 2017

@JiaLiPassion the attached file seems to fix the issue 👍 .Thank you.

@JiaLiPassion
Copy link
Contributor

@lafama, thank you for confirm.

@ptesar-xyndata
Copy link

@JiaLiPassion should I replace the directory in node_modules? When I will do it, zone.js stop working

Thx

@lafama
Copy link
Author

lafama commented Aug 28, 2017

Inside the zone.js dist directory. Put the contents of the attached folder here node_modeules/zone.js/dist folder.

@ptesar-xyndata
Copy link

Yes! Thx for hint, it's working now!

@zxsoft
Copy link

zxsoft commented Aug 29, 2017

I've met the same problem. Is it the only way to fix it manually? Thought this problem exists in @angular/cli@1.3.2, would somebody tell me when will it be possible to fix it by install @angular/cli@1.3.3?

@JiaLiPassion
Copy link
Contributor

@zxsoft, it is not a angular-cli issue, please wait for zone.js@0.8.18.

@lafama
Copy link
Author

lafama commented Aug 29, 2017

@zxsoft in the mean time use @sha-N solution
npm install --save zone.js@0.8.16

@Brocco Brocco closed this as completed Aug 29, 2017
@marteloge
Copy link

Thanks! npm install --save zone.js@0.8.16 solved the problem :)

@angular-automatic-lock-bot
Copy link

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.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 7, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
8 participants