Vandana
Vandana

Reputation: 21

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

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

Upvotes: 1

Views: 2725

Answers (1)

foobarbaz
foobarbaz

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

Related Questions