prettier Unexpected closing tag "p". It may happen when the tag has already been closed by another tag.

Oldsaltfish·2024-07-11 00:35·77 次阅读

prettier Unexpected closing tag "p". It may happen when the tag has already been closed by another tag.

背景#

prettier报错,如图所示。
image

解决#

略微搜索后找到了答案。
p标签内不能嵌套div。
以下为原链接https://github.com/prettier/prettier/issues/7640
image

posted @   魂祈梦  阅读(77)  评论(0编辑  收藏  举报
点击右上角即可分享
微信分享提示
目录