You can use this patch to prevent nextjs 14 from rewriting your tsconfig.
For more on how that works see:
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", |
"dependencies": { | |
- "@hot-loader/react-dom": "^17.0.1", | |
- "react": "^17.0.2", | |
- "react-dom": "^17.0.2", | |
+ "react": "^18.2.0", | |
+ "react-dom": "^18.2.0", | |
- "react-redux": "^7.2.4", | |
+ "react-redux": "^8.0.5", | |
- "redux-thunk": "^2.3.0", | |
+ "redux-thunk": "^2.4.2", |
TypeError: Cannot read property 'useMemo' of null |