Vscode Parsing error: Unexpected token?


Im working on the tictactoe solution and I get an error in vscode

boardString += ${gameBoard[i] ?? i + 1} ; Parsing error: Unexpected token ?

I think the ?? is a newer js feature? cant figure out how to update vscode to be okay with it? something with eslint settings?


Information is not sufficient to reproduce the error. Can you screenshot and send the error?


Hope this will help you https://grantnorwood.com/eslint-parsing-error-unexpected-token-visual-studio-code/

1 Like

Thank you so much. With a bit of fiddling with babel config it is all sorted.

1 Like