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

魂祈梦發表於2024-07-11

背景

prettier報錯,如圖所示。
image

解決

略微搜尋後找到了答案。
p標籤內不能巢狀div。
以下為原連結https://github.com/prettier/prettier/issues/7640
image

相關文章