簡體   English   中英

Outlook 插件使用 Angular 構建,在 Windows 上顯示空白屏幕

[英]Outlook Add-In Built using Angular showing blank screen on Windows Outlook App pre 1903 build

我們正在使用 angular 開發 Outlook 插件。 該插件適用於 IE11、Edge、Chrome 和 Safari,但適用於 Windows Outlook 桌面應用程序版本(< 1903),它使用 IE1 的空白屏幕。 這是我的 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"/>

在索引中。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 依賴於幾個 window.history API,桌面 IE 運行時不支持這些 API。 So when using AngularJS you must nullify the window.history APIs by adding <script>window.history.replaceState=null;window.history.pushState=null;</script> to your index.html page. 此外,在使用 IE webview 時檢查 pollyfill 問題總是很好的。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM