How do I turn off the "label is not a valid value for slot. Expected: " warning Follow 209103572 Created January 14, 2023 16:09 大家好， 希望你能帮我解决我的问题，非常感谢 相关问题图片
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-uicomponents, 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-typesdescribe the library's components and their directives and slots.
"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
Thank 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