Code inspection error
Comments (4)
-
repo owner -
reporter Hi Scott, ah ok I didn't know that it was related to IntelliJ IDEA because I had never seen those inspection errors prior to upgrading to IC2. This code is actually just located in a local file that contains some code snippets that I used for a quick copy and paste when I need them. I just tested Console in my other files and it seems to work fine so if you would like to close out this ticket that would be ok with me. :)
-
repo owner Gotcha. That makes total sense. IntelliJ IDEA/WebStorm knows to make the browser libs available when editing browser source files such as HTML, JSP, and with IC, Visualforce and Lightning markup. However, if you're just editing a standalone
.js
file it won't bring in things likeconsole
, hence the errors. I'm going to resolve this since it's not an IC issue. -
repo owner - changed status to resolved
- Log in to comment
Michael, this particular code inspection is one of IntelliJ IDEA's/WebStorm's own, not one provided by IC. Let me take a look and see if somehow IC is interfering with the native JS capabilities as I'd expect it to be able to resolve
console
no problem. What kind of file is this? Just a.js
file or is it embedded in Visualforce/Lightning markup?