Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

1.4K
Views
AWS Lambda: Error: ENOENT: no such file or directory, mkdir '/var/task/node_modules/@types/nexus-typegen'

I'm getting the following error on the Lambda cloudwatch logs

    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'
}

I tried modifying the webpack to force to bundle the dir, like:

 new CopyWebpackPlugin({
          patterns: [
            {from: "./node_modules/@types/nexus-typegen"}
         ]
     })

I also modify my prisma makeSchema to GenerateArtifacts: false

MakeSchema({
  types: typeDefs,
  plugins: [
    nexusPrisma({ experimentalCRUD: true, shouldGenerateArtifacts: false }),
  ]

But nothing have worked so far... does anyone have a workaround this?

over 4 years ago · Santiago Trujillo
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!