From this line of code
{inputFields.map(if => <Input inputField={if} /> )}
I am getting this error on the word map
Parsing error: Argument expression expected.eslint
inputFields is inside a form, which is inside a div
<div>
<form>
{inputFields.map...}
</form>
</div
And input fields is an array
inputFields: InputField[]
This answer suggests that this could have something to do with the typescript version.
In my package.json
, I have that I'm using "typescript": "^3.8.3"
, but in the bottom right, I think it's saying that I'm using version 4.0.2?
When I click on that number, I can change the number to 3.9.7
but that doesn't change the error
Other answers that I've seen are not relevant to my use case with the map function