Hello! I've just recently started using prisma+nex...
# graphql-nexus
e
Hello! I've just recently started using prisma+nexus and it is really handy and well maintained. I am having just a small hickup whilst deploying it all to aws with serverless. Error message will be enclosed in the thread! I'd be awesome if someone could help me address my problem! 😉 Thanks!
Copy code
{
  "errorType": "Error",
  "errorMessage": "EROFS: read-only file system, mkdir '/var/task/node_modules/@types'",
  "code": "EROFS",
  "errno": -30,
  "syscall": "mkdir",
  "path": "/var/task/node_modules/@types",
  "stack": [
    "Error: EROFS: read-only file system, mkdir '/var/task/node_modules/@types'",
    "    at Object.mkdirSync (fs.js:921:3)",
    "    at createBrandNewDirectorySync (/var/task/node_modules/fs-jetpack/lib/dir.js:62:8)",
    "    at Object.createBrandNewDirectorySync [as createSync] (/var/task/node_modules/fs-jetpack/lib/dir.js:66:7)",
    "    at writeFileSync (/var/task/node_modules/fs-jetpack/lib/write.js:50:11)",
    "    at Object.writeSync [as sync] (/var/task/node_modules/fs-jetpack/lib/write.js:75:3)",
    "    at Object.write (/var/task/node_modules/fs-jetpack/lib/jetpack.js:241:13)",
    "    at Object.hardWriteFileSync (/var/task/node_modules/nexus-plugin-prisma/dist/utils.js:72:8)",
    "    at doGenerate (/var/task/node_modules/nexus-plugin-prisma/dist/typegen/render.js:50:17)",
    "    at Object.generateSync (/var/task/node_modules/nexus-plugin-prisma/dist/typegen/render.js:30:5)",
    "    at new SchemaBuilder (/var/task/node_modules/nexus-plugin-prisma/dist/builder.js:136:21)"
  ]
}
is webpack plugin necessary for the deployment to aws?
r
Hey @Elvijs 👋 Webpack is not necessary at all to deploy to serverless environments like Lambda. Have a look at this example where I have deployed a Nexus + Prisma app to Lambda
e
Thank you for the answer. I will look into this and try to understand whole deployment process more thoroughly! 😉
💯 1