I noticed this warning on my project : "Unresolved function or method $()"
I found the solution on the idea support (See https://intellij-support.jetbrains.com/hc/en-us/community/posts/360002260719--jQuery-shortcut-underlined-as-unresolved-function-or-method-)
The solution :
Types resolving won't work when using minified library version (jquery-3.3.1.min.js), but downloading typings (@types/jquery) should work:
- in Settings | Languages & Frameworks | JavaScript | Libraries, press Download..., choose jquery from the list
Or, install it in your project:
- in terminal, cd to your project root folder
- run npm i @types/jquery command
- in Settings | Languages & Frameworks | JavaScript | Libraries, press Download..., choose jquery from the list
Or, install it in your project:
- in terminal, cd to your project root folder
- run npm i @types/jquery command
Version :
- phpstorm 2021.1.3
No comments:
Post a Comment