简体   繁体   中英

ngx-image-cropper IE-11 not working angular 7.2

We are facing very unique issue in which Cropper is not working in IE 11 browser environment, some time out of stack space is coming,some time no errors come but cropper also does not generated. 在此处输入图像描述 Screenshot attached of how its looking in IE11 this is the screen after selecting the image to upload.

FOR REF: https://www.npmjs.com/package/ngx-image-cropper this is the link in which you can find pollyfill for IE we have used with the pollyfill given by angular https://angular.io/guide/browser-support

The "Out of Stack Space" error in your JavaScript programming language is generally referred to as stack overflow. When you are using JavaScript the functions it uses are copied into the memory. The memory on the JavaScript is called the "stack." If the function you are using is stacked and the script needs another function, they are both stacked together. This exceeds the stack limit and causes the "Out of Stack Space" error.

You can refer steps below may help to fix this error.

Step 1:

Open the JavaScript in your Document Object Model program. Check your script for an "infinity looping" function. When a function calls itself, the function will use conditional statements to make sure that the function never loops over itself.

Step 2:

Check your script for two functions that are calling on each other to form the infinity loop. You may have three or more infinity loops in your script. Use conditional statements to guard your code against the loop.

Step 3:

Check your script for high levels of recursive functions. A recursive function is a function that repeats back to a former part of the script. If you don't have your recursive functions in line, you could start an infinite loop back and forth, causing the "Out of Stack Space" error.

Step 4:

Build your very own stack, so you know there are no infinity loops in the code. Open your Document Object Model and start writing the script. Keep your counter variables throughout the script so you know there is no infinity looping throughout the code.

For information, you can refer this link.

How to Repair the Error "Javascript Is Out of Stack Space"

If this error is coming from the polyfill and you are not able to fix it by referring the above steps then I suggest you to provide feedback to the developer of that polyfill.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM