1

I am getting a javascript error

"missing = in destructuring declaration"

What could be the problem?

EndangeredMassa
  • 17,208
  • 8
  • 55
  • 79
Jineesh
  • 11,187
  • 5
  • 24
  • 25

2 Answers2

3

This is not a standard javascript error. It's coming from your editor. You must be using the js2-mode (Javascript mode) for your Emacs editor. This could be a missing equals in for loop. Example:

for(i 0; i < arr.length;i++); /* missing = in destructuring declaration */

However, without looking at your code, we can only guess.

ichiban
  • 6,162
  • 3
  • 27
  • 34
0

I got that error with a bad assignation (Python style) : var x,y = 2,3 ; instead of : var x = 2, y = 3;

Ilya
  • 1
  • 1
    The accepted answer already stated that it's only guesswork what the actual problem is, without any code provided. This should be a comment at best. – Lapskaus Apr 16 '20 at 15:19