ternjs / tern_for_sublime

Sublime Text package adding Tern support
MIT License
803 stars 54 forks source link

`tern_jump_to_def` command doesn't work for es6 classes created locally #181

Open sawyna opened 6 years ago

sawyna commented 6 years ago

tern_jump_to_def works fine for me when I click on library components like Route, Redirect. But when I click (tern_jump_to_def key binding) on react components created by me, it doesn't jump to either the component file or the definition created by me.

This is my .tern-project configuration.

{
    "libs": [
        "ecma5",
        "ecma6"
    ],
    "ecmaVersion": 6,
    "plugins": {
        "node": {},
        "requirejs": {
            "baseUrl": "./"
        },
        "es_modules": {}
    }
}

I'm not sure why this happens only with local react components. Can anyone please help me with this?