I code my solidity contracts and I test in Remix Web IDE. When I test and I not get errors I copy to my project folder in my local machine. And all this errors appear in Visual Studio Code.
I can migrate and compile with truffle and use. Without errors.
Who know´s what happening??