search

Home  >  Q&A  >  body text

How to fix "Unrecognized Vue directive" warning in Webstorm for Vue.js. Install instructions via npm and Vue.use

How to fix "Unrecognized Vue directive" warning in Vue.js Webstorm. Installation instructions via npm and Vue.use

P粉696891871P粉696891871358 days ago687

reply all(1)I'll reply

  • P粉510127741

    P粉5101277412024-01-08 11:28:42

    The "Unrecognized Vue directive" warning appears to come from a bug in the IDE Documented here.

    You can use the web-types.json file in the project root directory and add the attribute "web-types": "./web-types.json" to package.json file, like this comment. The Web-Types standard was created by JetBrains, the company behind WebStorm and PhpStorm, and documentation is located in the <代码>JetBrains/web-types Github repository.

    However, in my case, using PhpStorm 2022.3.3, I couldn't resolve the Floating issue happening with Vue and v-tooltip custom directives.

    reply
    0
  • Cancelreply