Created
December 25, 2021 03:39
-
-
Save y56/9101155d5f589d4ac4f41bbf66e28caa to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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