Taras Protchenko
10/07/2020, 11:18 AMremote: Type error: Property 'model' does not exist on type 'ObjectDefinitionBlock<"User">'.
remote:
remote: 19 | name: 'User',
remote: 20 | definition(t) {
remote: > 21 | t.model.id()
remote: | ^
Maybe this connected with @nexus/schema or nexus-plugin-prisma?
"nexus-plugin-prisma": "^0.19.0",
"@nexus/schema": "^0.16.0",
Ryan
10/07/2020, 11:21 AMNODE_ENV
is set to production and Nexus is not generating the types, but could you check your logs and see if that’s the case?Taras Protchenko
10/07/2020, 11:26 AM"scripts": {
"start": "next start -p $PORT",
"dev": "next dev",
"build": "next build",
"studio": "npx prisma studio",
"generate": "npm -s run generate:prisma && npm -s run generate:nexus",
"generate:prisma": "prisma generate",
"generate:nexus": "ts-node --transpile-only -P nexus.tsconfig.json src/graphql/schema",
"lint": "eslint '*/**/*.{js,ts,tsx}' --quiet --fix",
"postinstall": "npm run generate"
},
ok, i try to set mode to dev
Taras Protchenko
10/07/2020, 12:34 PM"generate:nexus": "NODE_ENV=development ts-node --transpile-only -P nexus.tsconfig.json src/graphql/schema"
and deploy succeededRyan
10/07/2020, 12:35 PMTaras Protchenko
10/07/2020, 12:59 PMNODE_ENV=development
Dickson
11/25/2020, 9:26 AMnexus.tsconfig.json
?Taras Protchenko
11/25/2020, 9:45 AM{
"compilerOptions": {
"sourceMap": true,
"outDir": "dist",
"strict": true,
"lib": [
"esnext"
],
"esModuleInterop": true
}
}