is there an easy way to figure out where e.slice errors are occurring

Thread is closed for posting
3 posts, 0 answers
  1. Doug
    Doug avatar
    20 posts
    Member since:
    Aug 2015

    Posted 15 Mar 2016 Link to this post

    I am getting an "e.slice is not a function" error somewhere in my code, but where I'm not sure.


    Is there some way to track down this, or could the kendo.all.min.js script provide a more meaningful error message?

  2. Anton Dobrev
    Anton Dobrev avatar
    609 posts

    Posted 18 Mar 2016 Link to this post

    Hello Doug,

    This error usually refers to the usage of the slice function for modifying arrays in JavaScript.  It is usually caused when a particular functionality expects a parameter of type Array and does not receive it.

    One very common reason is that the Kendo UI Data Source instance is passed a JSON data which should be an array and is not.

    If you have a license for the Kendo UI Professional library (kendo.all.min.js is part of the paid Kendo UI Pro distribution), you will be able to access the development, non-minified version of the library in your account. You can also use the open-source Kendo UI Core library and its non-minified version.

    I hope that this helps.

    Anton Dobrev

    Visit the Telerik Verified Plugins Marketplace and get the custom Cordova plugin you need, already tweaked to work seamlessly with AppBuilder.

  3. Doug
    Doug avatar
    20 posts
    Member since:
    Aug 2015

    Posted 21 Mar 2016 in reply to Anton Dobrev Link to this post

    I wasn't sure where to get the un-minified version so I took the min one and created my own using an online service.  That didn't help much.  But I did find it.  Turns out I had a object that was missing a requestEnd section.  It was a no-op I put in to try and solve another problem, so I didn't need to see the response.  
Back to Top