Skip to content

Instantly share code, notes, and snippets.

@y56
Created December 25, 2021 03:39
Show Gist options
  • Save y56/9101155d5f589d4ac4f41bbf66e28caa to your computer and use it in GitHub Desktop.
Save y56/9101155d5f589d4ac4f41bbf66e28caa to your computer and use it in GitHub Desktop.
RuntimeError: Warning: Unable to detect a .tern-project file in the hierarchy before /home/y56/XXXXXXXX/test.js and no global
====
https://github.com/ain/.vim/issues/46
====
here is the solution that worked for me.
Apparently, it is not getting created automatically.
So, create the file manually.
touch ~/.tern-project
then place this
```
{
"plugins": {
"node": {},
"es_modules": {}
},
"libs": [
"ecma5",
"ecma6"
],
"ecmaVersion": 6
}
```
or this
```
{
"libs": [
"browser",
"react"
],
"plugins": {
"doc_comment": null,
"angular": {},
"node": {}
}
}
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment