This error can occur in Angular and is actually misleading. The - probable - actual error is:

Unexpected closing tag "div". It may happen when the tag has already been closed by another tag. For more info see


Look for an unclosed <div> tag in your component and fix it :-)


Saved you some valuable time?

Buy me a drink 🍺 to keep me motivated to create free content like this!