I’m sure this is a very dissatisfying answer but this happened to me yesterday (didn’t stop my code from compiling though). I restarted VS Code this morning and these errors went away. 
I’m sure this is a very dissatisfying answer but this happened to me yesterday (didn’t stop my code from compiling though). I restarted VS Code this morning and these errors went away. 