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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
zone.js can't patch XHR requests on IE11 #38561
Comments
I also have the same error, reverting back to 0.10.3 from 0.11.1 fixed it. It was caught by my error interceptor as a "Server Side error":
|
@kmaraz, I can not reproduce this issue, could you provide a reproduce repo? thanks. |
@JiaLiPassion here: https://github.com/kmaraz/zonejs-demo |
Maybe related: Also I am using
Because |
@kmaraz , the repo https://github.com/kmaraz/zonejs-demo only contains some config files, could you post a workable repo? |
@JiaLiPassion sorry, it is updated now. |
@kmaraz, thanks for the sample, this is not a bug since zone.js 0.11.1 is a major update with breaking change since from 0.11.1, zone.js change the And for now, the walk around is, update Thanks for reporting the issue. |
@JiaLiPassion why would |
@sir-captainmorgan21 , sure, if the project is created by The issue here https://github.com/kmaraz/zonejs-demo is not an |
Off topic:
It would be nice if zone.js would follow semver. How it is possible that major version didn't change but it is a breaking change. I'd never guessed that. |
@kmaraz, yeah, you are right, I understand your point, but since the major version of |
Close angular#38561, angular#38669 zone.js 0.11.1 introduces a breaking change to adpat Angular package format, and it breaks the module loading order, before 0.11, in IE11, the `zone.js` es5 format bundle will be imported, but after 0.11, the `fesm2015` format bundle will be imported, which will cause error. And since the only purpose of the `dist` folder of zone.js bundles is to keep backward compatibility, in the original commit, I use package redirect to implement that, but it is not fully backward compatible, we should keep the same dist structure as `0.10.3`.
Close angular#38561, angular#38669 zone.js 0.11.1 introduces a breaking change to adpat Angular package format, and it breaks the module loading order, before 0.11, in IE11, the `zone.js` es5 format bundle will be imported, but after 0.11, the `fesm2015` format bundle will be imported, which will cause error. And since the only purpose of the `dist` folder of zone.js bundles is to keep backward compatibility, in the original commit, I use package redirect to implement that, but it is not fully backward compatible, we should keep the same dist structure as `0.10.3`.
Close angular#38561, angular#38669 zone.js 0.11.1 introduces a breaking change to adpat Angular package format, and it breaks the module loading order, before 0.11, in IE11, the `zone.js` es5 format bundle will be imported, but after 0.11, the `fesm2015` format bundle will be imported, which will cause error. And since the only purpose of the `dist` folder of zone.js bundles is to keep backward compatibility, in the original commit, I use package redirect to implement that, but it is not fully backward compatible, we should keep the same dist structure as `0.10.3`.
@kmaraz, I just made another PR to fix this issue, zone.js 0.11 should have better backward compatibility, although in your case it is still a breaking change since
syntax will load different module in please wait for the next release 0.11.2. |
Close angular#38561, angular#38669 zone.js 0.11.1 introduces a breaking change to adpat Angular package format, and it breaks the module loading order, before 0.11, in IE11, the `zone.js` es5 format bundle will be imported, but after 0.11, the `fesm2015` format bundle will be imported, which will cause error. And since the only purpose of the `dist` folder of zone.js bundles is to keep backward compatibility, in the original commit, I use package redirect to implement that, but it is not fully backward compatible, we should keep the same dist structure as `0.10.3`.
Close angular#38561, angular#38669 zone.js 0.11.1 introduces a breaking change to adpat Angular package format, and it breaks the module loading order, before 0.11, in IE11, the `zone.js` es5 format bundle will be imported, but after 0.11, the `fesm2015` format bundle will be imported, which will cause error. And since the only purpose of the `dist` folder of zone.js bundles is to keep backward compatibility, in the original commit, I use package redirect to implement that, but it is not fully backward compatible, we should keep the same dist structure as `0.10.3`.
Close angular#38561, angular#38669 zone.js 0.11.1 introduces a breaking change to adpat Angular package format, and it breaks the module loading order, before 0.11, in IE11, the `zone.js` es5 format bundle will be imported, but after 0.11, the `fesm2015` format bundle will be imported, which will cause error. And since the only purpose of the `dist` folder of zone.js bundles is to keep backward compatibility, in the original commit, I use package redirect to implement that, but it is not fully backward compatible, we should keep the same dist structure as `0.10.3`.
Close angular#38561, angular#38669 zone.js 0.11.1 introduces a breaking change to adpat Angular package format, and it breaks the module loading order, before 0.11, in IE11, the `zone.js` es5 format bundle will be imported, but after 0.11, the `fesm2015` format bundle will be imported, which will cause error. And since the only purpose of the `dist` folder of zone.js bundles is to keep backward compatibility, in the original commit, I use package redirect to implement that, but it is not fully backward compatible, we should keep the same dist structure as `0.10.3`.
Close angular#38561, angular#38669 zone.js 0.11.1 introduces a breaking change to adpat Angular package format, and it breaks the module loading order, before 0.11, in IE11, the `zone.js` es5 format bundle will be imported, but after 0.11, the `fesm2015` format bundle will be imported, which causes error. And since the only purpose of the `dist` folder of zone.js bundles is to keep backward compatibility, in the original commit, I use package redirect to implement that, but it is not fully backward compatible, we should keep the same dist structure as `0.10.3`.
Can I use latest zone.js with Angular 8 ? I have the same issue with |
@pxw84 , sure, you can use the lastest version with |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
馃悶 bug report
Affected Package
The issue is caused by package zone.js@0.11.1
Is this a regression?
Yes, the previous version in which this bug was not present was: 0.10.3
Description
This error occurs on IE11 when zone.js tries to patch any XHR requests.
馃敩 Minimal Reproduction
馃敟 Exception or Error
Error message is
Stacktrace
馃實 Your Environment
Angular Version:
I am using custom Webpack configuration. All the packages are current latest version 10.0.11.
The text was updated successfully, but these errors were encountered: