tern icon indicating copy to clipboard operation
tern copied to clipboard

Cannot read property 'doc' of null when jumping to definition

Open patspam opened this issue 7 years ago • 0 comments

I'm seeing the following error:

TypeError: Cannot read property 'doc' of null

..on the following line which performs a destructuring import:

import { AppRegistry } from 'react-native';

..when I attempt to jump to the def of AppRegistry (I'm using Vim + YouCompleteMe's Tern integration).

Similarly to #711, the error goes away if I change the line to:

import * as foo from 'react-native';

This is on a newly created React Native client (react-native init FooClient), with the following .tern-project:

{
  "plugins": {
    "node": {},
    "es_modules": {}
  }
}

patspam avatar Oct 01 '16 13:10 patspam