title: AWS Lambda: Error: ENOENT: no such file or directory, mkdir '/var/task/node_modules/@types/nexus-typegen'
body: <p>I'm getting the following error on the Lambda cloudwatch logs</p>
  <pre><code>    ERROR   [Error: ENOENT: no such file or directory, mkdir '/var/task/node_modules/@types/nexus-typegen'] {
    errno: -2,
    code: 'ENOENT',
    syscall: 'mkdir',
    path: '/var/task/node_modules/@types/nexus-typegen'
  }
  </code></pre>
  <p>I tried modifying the webpack to force to bundle the dir, like:</p>
  <pre><code> new CopyWebpackPlugin({
            patterns: [
              {from: &quot;./node_modules/@types/nexus-typegen&quot;}
           ]
       })
  </code></pre>
  <p>I also modify my prisma makeSchema to GenerateArtifacts: false</p>
  <pre><code>MakeSchema({
    types: typeDefs,
    plugins: [
      nexusPrisma({ experimentalCRUD: true, shouldGenerateArtifacts: false }),
    ]
  </code></pre>
  <p>But nothing have worked so far... does anyone have a workaround this?</p>