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

前端 未结 6 1752
失恋的感觉
失恋的感觉 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:25

    I'm on Angular 8 and I needed to combine two lines from a couple of these solutions. This suppressed the message for me.

    in polyfill.js:

    window['__Zone_enable_cross_context_check'] = true
    window['__Zone_disable_IE_check'] = true;
    import 'zone.js/dist/zone';  // Included with Angular CLI.
    

提交回复
热议问题