I'm trying to configure Emacs with Tern.js to use AngularJS in it.
When add angular to .tern-project
like:
{
"plugins": {
"node": {
},
"angular": {
}
}
}
and type app.|
I get ReferenceError in Angular itself printed in minibuffer:
/my/project/home/angular.js:26307
})(window, document);
^
ReferenceError: window is not defined
at Object.<anonymous> (/my/project/home/angular.js:26307:4)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at loadPlugins (/usr/local/lib/node_modules/tern/bin/tern:111:15)
at startServer (/usr/local/lib/node_modules/tern/bin/tern:136:17)
at Object.<anonymous> (/usr/local/lib/node_modules/tern/bin/tern:132:14)
)
Does anyone have some experience with this or advice?