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?