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

Unable to obtain autocomplete for Express

Open infominer75 opened this issue 8 years ago • 1 comments

I installed this package then installed tern-node-express plug-in via NPM using the instructions within the Third Party Plugins section.

I have configured my .tern-project file to include the node-express plugin as mentioned in the document. Here is the excerpt from my minimalistic .tern-project:

`{ "ecmaVersion": 6, "libs": ["browser"], "plugins":{ "node":{}, "node-express":{}

}

}`

I checked the version of ternjs that has been installed with Atom and it shows the following fr the version attribute: { "name": "tern", "license": "MIT", "version": "0.18.0", "author": { "name": "Marijn Haverbeke", "email": "[email protected]" }, .... } From the package dependencies for ternjs that is present in tern-node-express the dependency version for ternjs is specified below:

"dependencies": { "tern": "^0.17.0" },

So is this a problem with the version of ternjs? Is the tern-node-express plugin not compatible for the Atom plug-in?

infominer75 avatar Mar 19 '17 16:03 infominer75

This is probably an issue with the plugin. The plugin needs to be updated to work with tern 0.23.0

tststs avatar Mar 03 '19 20:03 tststs