title: Warning: Accessing non-existent property 'path' of module exports inside circular dependency
body: <p><a href="https://i.stack.imgur.com/hTAEa.png" rel="nofollow noreferrer">node --trace-warnings ...</a>I encounter a diffult. Does the displayed error relate to the version of node used?</p>
  <p>In my apps.js file I have entered the const path.</p>
  <p>I work with express, nodejs, and mongo db.</p>
  <p>My user can create their own sauce.</p>
  <p>But when I write nodemon server I have this message on my terminal VSC.
  I have v16.13.1 of nodejs.</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>//app.js//
  
  const path = require("path");
  
  
  app.use("/images", express.static(path.join(__dirname, "images")));</code></pre>
  </div>
  </div>
  </p>