Search code examples
javascriptwebstorm

How can I fix "cannot find declaration to go to" in WebStorm?


I'm using WebStorm with JavaScript and when I press F3 or Ctrl + Click on function I get message that say "cannot find declaration to go to". This happens only in functions that I wrote on my computer, with other functions it works great.

I wrote my functions declarations exactly like all the other functions that go to declaration works for them. I'm using Ultimate version.

I tried File->Invalidate cache\Restart... and it didn't work.

Any suggestions?

EDIT: Example of the function:

    FaasInitUtils.prototype.createCompnentData = function createCompnentData(app) {

}

when I call this function I do it like this:

        FaasInitUtils.prototype.configureSiteCdmRT = function configureSiteCdmRT() {
var componentData = this.createCompnentData(app);
}

Solution

  • I manged to fix it. I had a lot of projects and big one in Webstorm, what I excluded target folders and then everything started to work (including colors). So I think that there is a problem with the configuration of memory limitation/consumption.