My sitename is zen-noether-5d2aae
I’m getting some trouble while trying to work on netlify with:
I’ve managed to get this to work on
netlify dev locally, and also to build it online.
But when I try to fetch
.../.netlify/functions/graphql I get
Error: Cannot find module '@prisma/client'
[functions] external_node_modules = ["@kenchi/nexus-plugin-prisma", "@prisma/client", "nexus-plugin-prisma"] [build] command = "npm install -g pnpm && pnpm -w shared install && pnpm -w backend install && pnpm build" functions = "src/lambda" # netlify-lambda reads this ignore = "if [ $CACHED_COMMIT_REF != $COMMIT_REF ]; then git diff --quiet $CACHED_COMMIT_REF $COMMIT_REF . ../shared; fi" [build.environment] NPM_FLAGS="--prefix=/dev/null" NODE_VERSION='14'
I use pnpm monorepo too:
Here is my pseudo-folder-structure
. Root (but not the monorepo root) netlify.toml +---.netlify | +---functions | +---functions-serve +---src | +---lambda | +---functionsThatAreUsedInLambda
If there is some more specific things I could provide to help someone help me, please ask! I just don’t want to bloat with useless info (and I don’t really know how yet to create a reproduction repository of something that needs a minimal database to interact with prisma yet)
Thanks in advance!