-
Notifications
You must be signed in to change notification settings - Fork 406
Illegal invocation using patched XMLHttpRequest #1223
Comments
Could you provide a reproduce repo? Thanks |
Is that the most useful thing I can do? To reproduce it from code, you're going to need a JDK installation and an Android device or emulator to hand. If you have those things, it's enough to In other news, FileReader is also broken. Am I doing something dumb? How should I import Zone.js in a React Native application? |
I never tried using |
OK, I've created a repo at I had no problems using Zone.js with React Native 0.56. The sooner Zones becomes a standard part of JavaScript the better. :-) |
Thanks, I will look into it. |
@sdc395, it seems |
At the moment, I'm only knowingly using Zone.js to make database transaction objects available to asynchronous functions that need database access. Perhaps I can disable the Zone.js patches I don't need. I had set Thanks for your help with this issue. |
@sdc395, yes, you are right, the walk around is,
And everything should work fine. |
That has done the trick, although I've only needed to disable EventTarget patching (so far). Thanks so much. Will full, on-going support for React Native be available in the future? I'm building my mobile app's database access around Zone.js and I'd hate to have to rip that out post-launch. |
I have issue with version 0.9.0 too. I've recently updated all packages in project and Angular to version 7.2.13. Core-js is on version 3.0.1. After every request, zone.js throw this error: TypeError: Cannot read property 'call' of undefined at ZoneTask.scheduleTask [as scheduleFn]. Call of undefined is on this line: oriAddListener.call(target, READY_STATE_CHANGE, newListener); We work with LG smart TV with webOS version 3.8.0 (latest LG update). Here is stacktrace: After downgrading to zone.js version 0.8.29, application works |
@JiaLiPassion - it looks like Googlebot does not like Zone.js 0.9.0 either: angular/angular#30203 |
@petebacondarwin, got it, I will check it, thanks! |
I will close this one because angular/angular#30203 has been fixed. |
I've recently updated a React Native app that uses Zone.js to manager its database transactions and, in doing so, encountered an
illegal invocation
exception when callingfetch
. The exception is thrown from thescheduleTask
function withinpatchXHR
ofzone.js
. Specifically, the call tooriAddListener.call(target, READY_STATE_CHANGE, newListener);
I've done my best to diagnose the problem but I can't see it.
I'm using Zone.js 0.9.0 with React Native 0.59 and debugging the application using Chrome 73.0.3683.86 (Official Build) (64-bit) on Ubuntu 16.04.6 4.15.0-46-generic x86_64.
The text was updated successfully, but these errors were encountered: