The reason is this:
https://stackoverflow.com/a/58267090/1236397
Basically, make sure all types start with a capital letter. Don’t name your class to follow typically JS naming conventions for the HTML tags. This is a TypeScript specific issue.