You can use this patch to prevent nextjs 14 from rewriting your tsconfig.
For more on how that works see:
| diff --git a/dist/lib/helpers/createParams.js b/dist/lib/helpers/createParams.js | |
| index d389df498fbac20e7e1d306d52d997339c83e656..66bba54e5424d7706b168a2c857ea987de3ac519 100644 | |
| --- a/dist/lib/helpers/createParams.js | |
| +++ b/dist/lib/helpers/createParams.js | |
| @@ -5,22 +5,29 @@ const client_1 = require("@prisma/client"); | |
| const nestedReads_1 = require("../utils/nestedReads"); | |
| const uniqueFieldsByModel = {}; | |
| const uniqueIndexFieldsByModel = {}; | |
| -client_1.Prisma.dmmf.datamodel.models.forEach((model) => { | |
| - // add unique fields derived from indexes |
| diff --git a/build/index.js b/build/index.js | |
| index 3a8c0aa29a193b534bf698dac9b8167d2129ee6d..9e2b773ac3ed9d6bc0a54b59b6224f0e3986ce9a 100755 | |
| --- a/build/index.js | |
| +++ b/build/index.js | |
| @@ -4744,7 +4744,7 @@ Please run \`${$t("prisma generate")}\` to see the errors.`),"";if(u)this.logTex | |
| `;else throw P}let _=!1;if(x)try{let P=aar();if(P&&typeof P=="string"){let[k,I]=P.split(".");parseInt(k)==2&&parseInt(I)<12&&(_=!0)}}catch{}if(a&&_&&Ns.should.warn())return"There have been breaking changes in Prisma Client since you updated last time.\nPlease run `prisma generate` manually.";let C=` | |
| ${ge("Watching...")} ${de(f.schemaRootDir)} | |
| -`,F=i["--no-hints"]??!1;if(u){zp(C+` | |
| +`,F=i["--no-hints"]||!!process.env.PRISMA_OPT_OUT??!1;if(u){zp(C+` |
| import { createAzure } from '@ai-sdk/azure'; | |
| import { streamText } from 'ai'; | |
| import { Levenshtein, type Scorer } from 'autoevals'; | |
| import { evalite } from 'evalite'; | |
| import { traceAISDKModel } from 'evalite/ai-sdk'; | |
| process.env.AZURE_API_KEY = process.env.AZURE_OPENAI_API_KEY; | |
| process.env.AZURE_OPENAI_RESOURCE_NAME = process.env.AZURE_OPENAI_RESOURCE_NAME; | |
| const azure = createAzure({ |
| CREATE EXTENSION IF NOT EXISTS "unaccent"; |
You can use this patch to prevent nextjs 14 from rewriting your tsconfig.
For more on how that works see:
| Warning: ReactDOM.render is no longer supported in React 18. Use createRoot instead. Until you switch to the new API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot |
| TypeError: Cannot assign to read only property 'reload' of object '[object Location]' |
| yarn remove @testing-library/react-hooks -W && \ | |
| yarn add -D @testing-library/react@latest -W |
| Found 342 errors in 196 files. |
| TypeError: Converting circular structure to JSON |