The Selected Template is Invalid

If you're seeing an error message that the selected template is invalid (like this), it likely means that the template you have selected doesn't have a valid component file.
The selected template is invalid error message when creating a new component with an invalid template.
Check that there is a component file present in the template folder by the name "new-component.tsx", "NewComponent.tsx", or "newComponent.tsx" (depending on the file-naming convention of your project). See here for information on creating a template.