I am getting this error: *Couldn't find the definition of the element with

I am getting this error:

Couldn’t find the definition of the element with tag ‘content-card’ in any template file declared using ‘@JsModule’ annotations. Check the availability of the template files in your WAR file or provide alternative implementation of the method getTemplateContent() which should return an element representing the content of the template file

Running Vaadin 21.0.7
Any Suggestions?

I seem to have fixed it by adding it to whitelist in application.properties

vaadin.whitelisted-packages = com.vaadin,org.vaadin,com.github