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)
Download image docker pull openjdk Creating a Dat...
Because the distribution package of MySQL Communi...
Recently, due to business adjustments in the comp...
1. Browser rendering mode and doctype Some web pa...
Today I encountered a problem when I used Dockerf...
Prepare war package 1. Prepare the existing Sprin...
Table of contents vue router 1. Understand the co...
Use CSS3 to achieve cool radar scanning pictures:...
1. Do a good job of cleaning before installation ...
Table of contents index - General index - Unique ...
Installation sequence rpm -ivh mysql-community-co...
1. Create a new user wwweee000 [root@localhost ~]...
Here we mainly use spring-boot out of the box, wh...
Table of contents Inheritance and prototype chain...
Installation Script Ubuntu / CentOS There seems t...