Closed malekjaroslav closed 4 years ago
I think this is a nexus issue? Also are you using the latest version of nexus and graphql libs?
Sent with GitHawk
I added:
"workspaces": {
"nohoist": ["**"]
}
to the child project, ran yarn
and yarn generate
! Yeet 🎉
I tried to mirror the Prisma2 example package.json and now I'm getting this after upgrading to preview019:
```json { "name": "api", "version": "0.1.0", "private": true, "scripts": { "start": "ts-node-dev --no-notify --respawn --transpileOnly src/server", "clean": "rm -rf dist", "build": "npm -s run clean && npm -s run generate && tsc", "generate": "npm -s run generate:prisma && npm -s run generate:nexus", "generate:prisma": "prisma2 generate", "generate:nexus": "ts-node --transpile-only src/schema", "seed": "ts-node prisma/seed.ts 348", "postinstall": "npm -s run generate" }, "dependencies": { "@prisma/photon": "2.0.0-preview019", "bcryptjs": "2.4.3", "graphql-middleware": "4.0.1", "graphql-shield": "5.7.3", "graphql-yoga": "1.18.3", "jsonwebtoken": "^8.5.1", "nexus": "0.12.0-rc.5", "nexus-prisma": "0.6.1", "pg": "^7.15.0", }, "devDependencies": { "@prisma/sdk": "0.0.105", "@types/bcryptjs": "2.4.2", "@types/jsonwebtoken": "8.3.4", "@types/node": "12.7.5", "@types/pg": "^7.11.2", "prisma2": "2.0.0-preview019", "ts-node": "8.5.4", "ts-node-dev": "1.0.0-pre.44", "typescript": "^3.7.2" } } ```
yarn generate
@jasonkuhrt Thank you! I did not realize the issue could be older graphql libs. I updated all and it now works :)
Getting this error. What I found is that after calling
makeSchema
, the schema does not includeextensions
and that is where it fails...