Versions
Repro steps
ng new someproject
cd someproject
// edit angular.json
ng g component demo
The edit in angular.json is setting the prefix to ""
Observed behavior

Desired behavior
No error. It is perfectly legal to not have a prefix. (might be unwise, but still). The thing should check if there will be a - in there, as the standards demand that for custom elements.