Nexus-plugin-prisma: Cannot find module 'global-dirs'

Created on 19 Aug 2020  路  3Comments  路  Source: graphql-nexus/nexus-plugin-prisma

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

Most helpful comment

All 3 comments

I got the same error, and maybe it's related to prisma 2.5.0

yes same for me

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mohe2015 picture mohe2015  路  3Comments

colinhacks picture colinhacks  路  5Comments

aqwert picture aqwert  路  3Comments

adarnon picture adarnon  路  3Comments

jamesopti picture jamesopti  路  4Comments