title: cannot include a user module in electron (node js)
body: <p><a href="https://i.stack.imgur.com/Y9gA5.png" rel="nofollow noreferrer">file structure</a></p>
  
  <p><a href="https://i.stack.imgur.com/lRtE6.png" rel="nofollow noreferrer">importing the user module connection.js</a></p>
  
  <p><a href="https://i.stack.imgur.com/qbq71.png" rel="nofollow noreferrer">connection.js</a></p>
  
  <p><a href="https://i.stack.imgur.com/pU3zW.png" rel="nofollow noreferrer">error</a></p>
  
  <p>This app is based on electron everything is working fine apart from the fact that I cannot require a self created module. It is working fine in the same file just cannot require it externally. I think the renderer somehow cannot find the module.</p>
  
  <p>I have tried setting app to var app = electron.app
  and, i have also tried remote but that was a bit defying logic however, it didn't work seriously fed up!!!!!!</p>