LoginSignup
2
3

More than 5 years have passed since last update.

PhpStromでVue.jsのコンポーネント書く時に「XML tag has empty body・・」のエラーが出る件への対応

Last updated at Posted at 2018-05-05

 現象

PhpStromでVue.jsのコンポーネント書くと以下のようなエラーが出る。

スクリーンショット 2018-05-05 19.26.10.png

これはうざい。非常にうざい。

対策

PhpStrom > Preferebces > Editor > Inspactions と辿っていくと以下のような画面が出る。

スクリーンショット 2018-05-05 19.27.32.png

上記のXML tag has empty bodyのチェックを外し「Apply」 > 「OK」をクリック。
するとどうだろう。
見事エラーが消えたでは無いか。

スクリーンショット 2018-05-05 19.29.30.png

ウェイ!

(参考)
https://youtrack.jetbrains.com/issue/WEB-31042

2
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
3