我们正在开发一个使用angular的Outlook插件。该插件可以在IE11、Edge、Chrome和Safari上运行,但在使用IE11的Windows Outlook桌面应用程序版本(< 1903)上,它会显示一个空屏幕。这是我的pollyfills文件:
/***************************************************************************************************
* BROWSER POLYFILLS
*/
/** IE10 and IE11 requires the following for NgClass support on SVG elements */
import 'classlist.js'; // Run `npm install --save classlist.js`.
import 'intersection-observer';
import 'core-js/es6/symbol';
import 'core-js/es6/object';
import 'core-js/es6/function';
import 'core-js/es6/parse-int';
import 'core-js/es6/parse-float';
import 'core-js/es6/number';
import 'core-js/es6/math';
import 'core-js/es6/string';
import 'core-js/es6/date';
import 'core-js/es6/array';
import 'core-js/es6/regexp';
import 'core-js/es6/map';
import 'core-js/es6/weak-map';
import 'core-js/es6/set';
import 'core-js/es7/array';
import 'core-js/es6/reflect';
import 'core-js/es7/reflect';
我还添加了
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
在index.html中。
这两个解决方案我可以在谷歌中找到,但它们都不起作用。
下面是我得到的错误:
Exception was thrown at line 1, column 25670 in mydomain.com/polyfills-
es5.39e9f85b88cc5eac0d73.js
0x800a138f - JavaScript runtime error: Object.getPrototypeOf: 'this' is not an Object
Exception was thrown at line 1, column 203956 in mydomain.com/polyfills-
es5.39e9f85b88cc5eac0d73.js
0x800a138f - JavaScript runtime error: Object.keys: argument is not an Object
Exception was thrown at line 1, column 46550 in mydomain.com/polyfills-
es5.39e9f85b88cc5eac0d73.js
0x800a138f - JavaScript runtime error: Object.freeze: argument is not an Object
Exception was thrown at line 1, column 1586 in mydomain.com/polyfills-
es5.39e9f85b88cc5eac0d73.js
0x800a138f - JavaScript runtime error: Object.seal: argument is not an Object在这方面的任何帮助都会很有帮助。谢谢
发布于 2021-04-16 01:46:50
AngularJS依赖于一些window.history API,这些API不受桌面IE运行时的支持。因此,在使用AngularJS时,必须通过将<script>window.history.replaceState=null;window.history.pushState=null;</script>添加到index.html页面来使window.history API无效。此外,在使用IE webview时,检查pollyfill问题总是很好的。
https://stackoverflow.com/questions/66800620
复制相似问题