title: Cannot find module '.../models/user' nodejs
body: <p>I've got a problem with require.
  I've got a users.js inside folder 'router'. In users.js everything works great with</p>
  
  <pre><code>let User = require('../models/user');
  </code></pre>
  
  <p>But when users.js file getting bigger I wanted to part this file into a few files like login.js regiseter.js and so on. I created a folder 'users' inside 'router' and put there those files  (login.js, register.js)</p>
  
  <p>I changed my require to</p>
  
  <pre><code>let User = require('.../models/user');
  </code></pre>
  
  <p>Now I got an error:</p>
  
  <blockquote>
    <p>Cannot find module '.../models/user'
    <a href="https://i.stack.imgur.com/rb5To.png" rel="nofollow noreferrer">enter image description here</a></p>
  </blockquote>