Upon creating a new Next + Nexus + Prisma project, I get the following error:
Error: Cannot find module 'global-dirs'
Here is what I'm running:
import { prisma } from 'nexus-plugin-prisma'
if (process.env.NODE_ENV === 'development') require('nexus').default.reset()
const app = require('nexus').default
app.use(prisma())
app.assemble()
export default app.server.handlers.graphql
It runs fine if I manually include it in my project
I got the same error, and maybe it's related to prisma 2.5.0
yes same for me
Most helpful comment
Related to https://github.com/graphql-nexus/nexus/issues/1374