Angular应用程序在IE和chrome中工作正常,但在safari中无法工作,甚至没有显示任何错误,并尝试使用polyfill
还有这里的polyfill.ts
/** IE9, IE10 and IE11 requires all of the following polyfills. **/
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/client/shim';
import 'intl';
import 'intl/locale-data/jsonp/en';
/** IE10 and IE11 requires the following for NgClass support on SVG elements */
import 'classlist.js'; // Run `npm install --save classlist.js`.
/** IE10 and IE11 requires the following for the Reflect API. */
import 'core-js/es6/reflect';
/** Evergreen browsers require these. **/
// Used for reflect-metadata in JIT. If you use AOT (and only Angular decorators), you can remove.
import 'core-js/es7/reflect';
import 'web-animations-js'; // Run `npm install --save web-animations-js`.
import 'zone.js/dist/zone'; // Included with Angular CLI.在package.json中,所有版本都是6.x版本
发布于 2019-08-01 23:00:27
Angular 6支持Safari版本>= 10。windows系统上safari的最新版本是5,Mac上的最新版本是12 (2019年8月1日)。如果你是在windows safari上验证,它将不会工作。你需要在Mac机器上检查一下。
您可以查看safari发布历史记录here
https://stackoverflow.com/questions/55243111
复制相似问题