atom-ternjs
atom-ternjs copied to clipboard
TypeError: Cannot read property 'name' of undefined. Restarting Server...
When typing the word export twice on separate lines like so:
export
export
atom-ternjs produces the following error: TypeError: Cannot read property 'name' of undefined. Restarting Server...
While this is obviously not something that someone would do normally, I came across it from the following code snippet:
|
export function authError(error){
return {
type: AUTH_ERROR,
payload: error
};
}
Where my cursor is denoted by |. The error pops up as soon as you start trying to export a new function, and type the keyword export.
Atom Version 1.12.7 atom-ternjs Version 0.16.1
.tern-project:
{
"ecmaVersion": 6,
"libs": [
"browser"
],
"plugins": {
"doc_comment": {
"fullDocs": true,
"strong": false
},
"es_modules": {}
}
}
This is most likely an issue with tern itself. Feel free to create an issue there.