I’m using Atom Ternjs plugin for code intelligence and autocomplete.
Here’s my problem. When I “call” an external file rather than full module (from node_modules), I can’t access its properties. How can I fix it?
Note : I only included the changes I’ve made to my Node.js app.
var io = require('socket.io')(); module.exports = io;
var io = require('../io'); io.attach(server);
var io = require('./io');
When I type io and put a dot, (io.) while I’m in app.js , it should recognize socketio and show me “on”, but it doesn’t. The same thing applies to emit (io.emit).