IntelliJ unresolved function or method using jQuery

I struggled to $be flagged as unresolved function or methodwhen IntelliJ does its analysis. I tried loading the jQuery library as part of IntelliJ and setting the global scope, but it still does not work. I am currently using jquery 12.1.6.

Is there a way to make IntelliJ understand that $ is defined globally?

+5
source share
1 answer

Here jQuery v1.11.0 shows exactly the same behavior. At the same time, the previous version 1.10.2 works fine in the IDE (without warning).

, - "AMD-fy jQuery source" (http://bugs.jquery.com/ticket/14113) - , IDE .

( ) - jQuery v1.10.2 ( , , - ).

, IDE jQuery .

: http://youtrack.jetbrains.com/issue/WEB-10908

0

Source: https://habr.com/ru/post/1525344/


All Articles