I didn’t have this warning when I was in a single file, but I got this warning when I created a component in a vue project. My IDE version is 2022.03. I uploaded a new vue project, using vue2+element , below is my code, on my current computer there is this warning.
thanks, reproduced with your demo. As far as I can see, the IDE can't resolve element-ui components, thus the issue. Seems to be a problem with this particular library version. To improve code completion for different Vue.js component libraries, we have invented a special format of metadata, called web-types, as it's not always possible to resolve components defined in third-party libraries using static code analysis. web-types describe the library's components and their directives and slots.
element-ui@2.15.12 does have "web-types": "./web-types.json" in its package.json, but the file itself is missing in library distribution (https://github.com/ElemeFE/element/issues/22261). So all components and slots are unknown
Such issues are specific to libraries/components being used, there are no generic solutions. Please file a new ticket to youtrack, https://youtrack.jetbrains.com/issues/WEB, providing a code sample the issue can be repeated with
can't reproduce with similar code. What IDE version is it, do you have a sample project you can share that reproduces the issue?
I didn’t have this warning when I was in a single file, but I got this warning when I created a component in a vue project. My IDE version is 2022.03. I uploaded a new vue project, using vue2+element , below is my code, on my current computer there is this warning.
thanks, reproduced with your demo. As far as I can see, the IDE can't resolve
element-ui
components, thus the issue. Seems to be a problem with this particular library version. To improve code completion for different Vue.js component libraries, we have invented a special format of metadata, calledweb-types
, as it's not always possible to resolve components defined in third-party libraries using static code analysis.web-types
describe the library's components and their directives and slots.element-ui@2.15.12
does have"web-types": "./web-types.json"
in itspackage.json
, but the file itself is missing in library distribution (https://github.com/ElemeFE/element/issues/22261). So all components and slots are unknownThank you very much for your help, now my problem has been solved, I will continue to support your products
I met this issue either, plz tell me how to turn off the warning. Not just using web-types.
Such issues are specific to libraries/components being used, there are no generic solutions. Please file a new ticket to youtrack, https://youtrack.jetbrains.com/issues/WEB, providing a code sample the issue can be repeated with