Hey there! I've encountered an issue with vscode where it highlights valid code in red when using the union operator '??' or optional chaining '?.'. The code still builds without errors, but vscode displays a hover error message stating '[ts] Expected expression.'
This problem started occurring after switching to a new computer. Interestingly, the same code on my old computer did not have this highlighting issue. Both computers have the same extensions installed, with the only differences being the version of vscode and installed extensions.
To temporarily address this, I have disabled typescript code checking in the vscode settings by setting "typescript.validate.enable" to false. However, I feel that this is not the ideal solution as I want my code to be checked without being highlighted in red for using '??' or '?.'