0👍
✅
if this.locationData
is an array then the input does not require extra brackets around it.
turf.lineString(this.locationData, {name: 'line 1'});
0👍
As you can see, the error is no longer there, but no line is showing up on my map.
Also, as you can see in my IDE, it seems I need at least THAT array in there
Source:stackexchange.com