1

Getting error in console Uncaught ReferenceError: arguments is not defined after upgrading the webpack 4 to webpack 5. This arguments is in debounce funtion

enter image description here enter image description here

Vandana
  • 21
  • 5
  • Does this answer your question? [Why do arrow functions not have the arguments array?](https://stackoverflow.com/questions/41731854/why-do-arrow-functions-not-have-the-arguments-array) – lusc Feb 11 '22 at 19:32

1 Answers1

1

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.

foobarbaz
  • 11
  • 1