Open IAmAMFTRex opened 3 years ago
On building the final version of this example, a Type error is thrown:
./node_modules/.prisma\client\index.d.ts:11:33 Type error: Type expected.
9 | type UnwrapPromise<P extends any> = P extends Promise<infer R> ? R : P
10 | type UnwrapTuple<Tuple extends readonly unknown[]> = {
11 | [K in keyof Tuple]: K extends ${number} ? Tuple[K] extends PrismaPromise ? X : UnwrapPromise<Tuple[K]> : UnwrapPromise<Tuple[K]> | ^ 12 | }; 13 | 14 |
${number}
error Command failed with exit code 1.
I was able to determine the version of TypeScript was invalid - package.json has:
"devDependencies": { "@types/next-auth": "3.1.14", "@types/node": "14.14.6", "@types/react": "16.9.56", "prisma": "2.25.0", "typescript": **"4.0.5"** }
It should be:
"devDependencies": { "@types/next-auth": "3.1.14", "@types/node": "14.14.6", "@types/react": "16.9.56", "prisma": "2.25.0", "typescript": **"^4.1.0"** }
On building the final version of this example, a Type error is thrown:
./node_modules/.prisma\client\index.d.ts:11:33 Type error: Type expected.
10 | type UnwrapTuple<Tuple extends readonly unknown[]> = {
error Command failed with exit code 1.
I was able to determine the version of TypeScript was invalid - package.json has:
It should be: