atom-ternjs icon indicating copy to clipboard operation
atom-ternjs copied to clipboard

TypeError: Cannot read property 'name' of undefined. Restarting Server...

Open Bdthomson opened this issue 8 years ago • 1 comments

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": {}
  }
}

Bdthomson avatar Dec 30 '16 21:12 Bdthomson

This is most likely an issue with tern itself. Feel free to create an issue there.

tststs avatar Feb 17 '17 22:02 tststs