After upgrade to version 2, this warning happens in the compilation. With the last stable release, these warnings don't happen. Angular version: 10.1.5 