Go to definition on ES6 react app


Hi, I’m using ternjs on neovim but I can’t go to definition. On this example code:

import { actions, selectors } from '../../Actions/Claims'
import ClaimList from './ClaimList'
import { connect } from 'react-redux'
import { push } from 'react-router-redux'

const mapStateToProps = state => ({
  Claims: state.Claims.items,
  FirstClaim: selectors.GetFirstClaim(state)

const mapDispatchToProps = dispatch => ({
  onReviewFirstClaim() {

export default connect(mapStateToProps, mapDispatchToProps)(ClaimList)

if you try to go to de definition of ReviewFirstClaim ternjs says: no definition found.

I don’t know if I need to create an special configuration file. To test I’ve created a .tern-project file with this:

  "plugins": {
    "node": {}

but still not work.


You’ll definitely need the es_modules plugin if you’re using import.


Thanks!!! awesome!!

I can’t answer before because have not configured email alerts. Thanks!