title: Lambda can't find modules from outer folders when deployed with CDK
body: <p>I am deploying some apis to API Gateway using cdk. My problem is the file that contains the lambda(index.ts) can't import any files or npm modules outside that folder(folder named <code>get-users</code>).</p>
  
  <p>I tried copying node_modules folder and other files (which were outside the folder <code>get-users</code>) to the folder <code>get-users</code> and it worked perfectly.</p>
  
  <p>Example error when importing lodash is as follows,</p>
  
  <pre><code>"errorType": "Runtime.ImportModuleError",
  "errorMessage": "Error: Cannot find module 'lodash'",
  "stack": [
      "Runtime.ImportModuleError: Error: Cannot find module 'lodash'",
  </code></pre>
  
  <p>I am importing <code>lodash</code> as follows,</p>
  
  <pre><code>import * as _ from "lodash";
  </code></pre>
  
  <p>I am importing shared files as follows,</p>
  
  <pre><code>import { validator } from "./shared/validators" // This one works
  
  import { validator } from "../../shared/validators" // This one doesn't work
  </code></pre>