You can use this patch to prevent nextjs 14 from rewriting your tsconfig.
For more on how that works see:
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] |
"devDependencies": { | |
- "@testing-library/react": "^11.2.7", | |
- "@testing-library/react-hooks": "^8.0.1", | |
+ "@testing-library/react": "^13.4.0", | |
- "@types/react": "^17.0.20", | |
- "@types/react-dom": "^17.0.9", | |
- "@types/react-redux": "^7.1.11", | |
+ "@types/react": "^18.0.24", | |
+ "@types/react-dom": "^18.0.8", | |
- "typescript": "4.4.3", |