Just got into this issue. In my case, I was debugging my code and it was making my migrations fail.
Since in Visual Studio Code, the debugger is so low-profile (only a small bar), I didn't realize about this until I read some questions and decided to look better.