Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Prettier & Angular 15.1 : Only void and foreign elements can be self closed

I'm using the one of feature of Angular 15.1 : self-closing tags but prettier is throwing :

Only void and foreign elements can be self closed

I'm on prettier 2.7.1

like image 933
Matthieu Riegler Avatar asked May 31 '26 05:05

Matthieu Riegler


1 Answers

The support of self-closing tags with Angular has landed with Prettier 2.8.3.

like image 117
Matthieu Riegler Avatar answered Jun 02 '26 03:06

Matthieu Riegler