tern
tern copied to clipboard
Cannot read property 'doc' of null when jumping to definition
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": {}
}
}