当我在 IE、Mac Safari 中打开我的应用程序时,登录页面未打开,并且我在控制台中收到错误:SCRIPT5009: '_' is undefined SCRIPT1006: Expected ')'
2 回答
1
在我们的项目中搜索 polyfill.ts 文件并取消注释 polyfills
您在项目中使用 lodash/underscore 包吗?如果是,那么您需要安装它
于 2018-10-12T06:57:05.003 回答
0
在 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';
于 2018-10-12T06:59:01.423 回答