Skip to content
This repository was archived by the owner on Feb 26, 2024. It is now read-only.

Strange XMLHttpRequest error #787

Closed
evanjmg opened this issue May 20, 2017 · 2 comments
Closed

Strange XMLHttpRequest error #787

evanjmg opened this issue May 20, 2017 · 2 comments

Comments

@evanjmg
Copy link

evanjmg commented May 20, 2017

with the latest zone.js-0.8.11 - I'm getting with AOT - Angular 4.0.2 - running ngc -p && then webpack in production, I can reproduce this locally and on heroku

 Uncaught Error: eventTask XMLHttpRequest.addEventListener:readystatechange': can not transition to 'running', expecting state 'scheduled', was 'notScheduled'.
    at t._transitionTo (polyfills.6d82844656613bc57a6b.bundle.js:1)
    at r.runTask (polyfills.6d82844656613bc57a6b.bundle.js:1)
    at XMLHttpRequest.invoke (polyfills.6d82844656613bc57a6b.bundle.js:1)

at this line in zonejs ->                         t.prototype._transitionTo = function(t, n, e) {
                            if (this._state !== n && this._state !== e)
                                throw new Error(this.type + " '" + this.source + "': can not transition to '" + t + "', expecting state '" + n + "'" + (e ? " or '" + e + "'" : "") + ", was '" + this._state + "'.");
                            this._state = t,
                            t == _ && (this._zoneDelegates = null)
                        }

I'm assuming this is related to #530 - but shouldn't it be open? It's pretty easy to reproduce

@JiaLiPassion
Copy link
Collaborator

@evanjmg, thanks for posting the issue, can you provide a reproduce repo? and can you try it without AOT?

@evanjmg
Copy link
Author

evanjmg commented May 20, 2017

seems upgrading Angular to the latest fixes it -> Angular 4.1.3, maybe it's compatibility issues? I'll close this issue for now as it shouldn't be a problem if you have the latest.

@evanjmg evanjmg closed this as completed May 20, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants