Issue
I don't know why, but this is what VS Code gives me
My code compiles without any issues, so it must be VS Code related. Something in this component seems the mess things up in VS Code, because other components have no issues whatsoever. Also, the message suggests to use CUSTOM_ELEMENT_SCHEMA, which I have defined in my module file.
The structure of my Angular app is very basic, one module-file for everything, but the project is part of a nx monorepo. I have the Angular Language Service plugin installed, so I don't know what might be the reason of those errors I see in VS Code.
Solution
I found out that this is a problem of the Angular Language Service extension. Now, if you go into settings and uncheck the following config option of that extension
it seems to work again
My answer was inspired by this post
Answered By - Jeanluca Scaljeri


0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.