Pages

Sunday, July 4, 2021

PHPStorm Warning : Unresolved function or method $()

 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



Version :
- phpstorm 2021.1.3



No comments:

Post a Comment

Débutez en crypto-monnaie de manière ludique avec les projets "Move to earn"

Les projets "Move to earn" sont des projets très en vogue en ce moment dans le monde de la crypto-monnaie. Le principe est simple ...