1 Problem DescriptionVue3's combined API cannot be correctly recognized in WebStorm, as defineComponent and other functions cannot be recognized: 2 AttemptsI guess the reason for this problem is that the corresponding Vue3 library cannot be correctly identified. I believe WebStorm can do it, but some configurations are not correct. I tried to check node_modules in the Libraries setting, but it had no effect. 3 SolutionsThe final solution is referenced here (source): Select the node_modules folder, right-click and select Mark Directory as, and finally select Not Excluded. It will take some time to index, just wait for it to complete. 4 Some thoughtsAfter looking at the WebStorm documentation, the folders in the project are divided into four categories:
Searching for Directories in the settings reveals that node_modules is Excluded by default: After being marked as Not Excluded, it is no longer red: So the solution is not that difficult, it's just that the cause cannot be identified correctly. The above is the detailed content of the solution to WebStorm’s inability to correctly identify the Vue3 combined API. For more information about WebStorm’s inability to correctly identify the Vue3 combined API, please pay attention to other related articles on 123WORDPRESS.COM! You may also be interested in:
|
<<: How to install MySQL 5.7.17 and set the encoding to utf8 in Windows
>>: Introduction to Kubernetes (k8s)
question When we are developing normally, if we w...
The Docker container provides services and listen...
I have several tomcats here. If I use them at the...
Table of contents Case 1: Case 2: Case 3: To summ...
XML/HTML CodeCopy content to clipboard < div s...
Preface Recently, many new colleagues have asked ...
Disabling and enabling MySQL foreign key constrai...
1. Introduction I won’t go into details about apo...
I hope to align the title on the left and the dat...
This article introduces the CSS Sticky Footer imp...
Drawing EffectsImplementation Code JavaScript var...
Remote connection to MySQL fails, there may be th...
Today's web designs tend to display very larg...
Vue's simple timer is for your reference. The...
grammar: background-image: conic-gradient(from an...