Reputation: 21
Getting error in console Uncaught ReferenceError: arguments is not defined after upgrading the webpack 4 to webpack 5. This arguments is in debounce funtion
Upvotes: 1
Views: 2725
Reputation: 11
The debounce
function you have here is an arrow function which doesn't have arguments
.
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/Arrow_functions
Which leads to this issue.
Upvotes: 1