You can use this patch to prevent nextjs 14 from rewriting your tsconfig.
For more on how that works see:
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 |
# To run a particular React 18 code mod, e.g. `context-any` | |
npx types-react-codemod [codemod] [path-to-sg-root] [path-to-sg-next] | |
# Or if you prefer you can use the React 18 preset to run all mods | |
npx types-react-codemod preset-18 [path-to-sg-root] [path-to-sg-next] |