title: WebdriverIo doesn't seem to exclude my folder containing Page Object Files
body: <p>My wdio file contains the following code:</p>
  
  <pre><code>specs: [
      'tests/*.js'
  ],
  </code></pre>
  
  <p><em>// Patterns to exclude.</em></p>
  
  <pre><code>exclude: [
      'POM/*.js'
  ],
  </code></pre>
  
  <p>Exception Message: <strong>ERROR: Cannot find module 'POM/LoginPage.js'</strong></p>
  
  <p>Please note: Only seems to be affecting windows machine.</p>
  
  <p><strong>My project structure:</strong></p>
  
  <p><a href="https://i.stack.imgur.com/geYhX.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/geYhX.jpg" alt="enter image description here"></a></p>
  
  <p>Thanks for your help</p>