使用Angular构建的Outlook外接程序在1903年以前的Windows Outlook应用程序上显示空白屏幕



我们正在使用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

在这方面的任何援助都将是有益的。感谢

AngularJS依赖于一些窗口。历史API,Desktop IE运行时不支持这些API。因此,当使用AngularJS时,您必须通过在index.html页面中添加<script>window.history.replaceState=null;window.history.pushState=null;</script>来取消window.historyAPI。此外,在使用IE网络视图时,检查pollyfill问题总是很好的。

相关内容

最新更新