0

Is there a way to find the error code line with the next stackstrace? I know the error is by using slice in some undefined property but the app code is so long that could be anywhere.

enter image description here

By the way, I am only getting the above error in Internet Explorer. Other browsers works fine.

I hope to have explained my problem well. Thanks in advance.

Update

polyfills.ts

Elkin
  • 880
  • 2
  • 12
  • 26
  • 1
    not sure but you'd probably need to add a `polyfill` for `IE`. Also can you have a look at [this](https://stackoverflow.com/a/13317785/3621001)? – Syed Ali Taqi Sep 11 '19 at 12:18
  • 1
    Please check the polyfills.ts file, whether you have uncommented the related import for the IE browser, especially the array package. Besides, you could also check your code, where using an array or the related methods, then, you could try to set break point to debug it and try to find the which part of code will cause this error. – Zhi Lv Sep 11 '19 at 14:41
  • @ZhiLv-MSFT Actually It's the polyfills.ts imports code that throws the error. I will update the question with the polyfills.ts file – Elkin Sep 12 '19 at 09:01
  • @ZhiLv-MSFT I have also already tried to remove all the slice() method usages from code but the error remains – Elkin Sep 12 '19 at 09:03
  • can you post the Enough code to reproduce the problem as in [Minimal, Complete, and Verifiable example](https://stackoverflow.com/help/mcve). – Zhi Lv Sep 12 '19 at 11:24

1 Answers1

1

Try to uncommented the following reference in the polyfills.ts file:

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/es6/reflect';
Zhi Lv
  • 18,845
  • 1
  • 19
  • 30