简体   繁体   English

未捕获(承诺):错误:在 IE11 中拒绝访问

[英]Uncaught (In Promise): Error: Access Denied in IE11

Am using Angular 7 in my project and I found this error last day.在我的项目中使用 Angular 7,我昨天发现了这个错误。 It is happening only in the deployed site.它仅发生在已部署的站点中。 Not in my local.不在我的本地。 Also the same issue is not throwing in any other browsers, but in IE11 (Haven't tried any lower versions of IE).同样的问题不是在任何其他浏览器中抛出,而是在 IE11 中(尚未尝试任何较低版本的 IE)。 This issue was not there before and its been happening from last day only.这个问题以前不存在,它只发生在最后一天。 I tried to figure out the issue.我试图找出问题所在。 Tried changing polyfills and so on.尝试更改 polyfills 等。 But nothing worked.但没有任何效果。 Tried this link also.也试过这个链接 But that is also not resolved.但这也没有解决。 Any help will be appreciated.任何帮助将不胜感激。 Thanks in advance提前致谢

The reason your Promises are causing errors in IE is that Promises are not supported in IE11.您的Promises在 IE 中导致错误的原因是 IE11 不支持Promises

Although, there are ways to add support for them:虽然,有一些方法可以为它们添加支持:

  • 3rd Party Promise libraries (ie: Bluebird ) 3rd Party Promise库(即: Bluebird
  • If you are using ES6 syntax, perhaps use a transpiler (ie: Babel )如果您使用 ES6 语法,也许使用转译器(即: Babel

Current support for promises 当前对 promise 的支持

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM