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 @ 2024-07-11 00:35  魂祈梦  阅读(135)  评论(0)    收藏  举报