Angular 4 app using IE 11, “Can't execute code from a freed script”

前端 未结 6 1681
失恋的感觉
失恋的感觉 2021-02-05 04:48

I have an Angular app which I think is version 4. IE 11 crashes during a login sequence in this app: \"Can\'t execute code from a freed script\". According to the IE console the

6条回答
  •  鱼传尺愫
    2021-02-05 05:43

    Simply use the below code to resolve the zone.js errors in IE 11/EDGE versions. The following code has to be placed in the polyfills.ts :

    if (document['documentMode'] || /Edge/.test(navigator.userAgent)) {
        (window as any).__Zone_enable_cross_context_check = true;
    }
    

    Make the config changes in above code based on your requirement

提交回复
热议问题