[BUG] `refine-nextjs-router` is incompatible with `nextjs ^12.0.3`
See original GitHub issueFirst of all, thank you for your great work~
Describe the bug
refine-nextjs-router
is incompatible with nextjs ^12.0.3
To Reproduce
npx superplate-cli xsky-asst
Select your project type › refine-nextjs
- Edit
package.json
, setnext
version to^12.0.3
yarn install
yarn dev
Screenshots
Server Error
TypeError: Cannot read properties of null (reading 'push')
This error happened while generating the page. Any console logs will be displayed in the terminal window.
Call Stack
useHistory
file:///Users/weiyang/Ones/fun/xsky-asst/frontend-ng/xsky-asst/node_modules/@pankod/refine-nextjs-router/dist/refine-nextjs-router.cjs.development.js (44:25)
NextRouteComponent
file:///Users/weiyang/Ones/fun/xsky-asst/frontend-ng/xsky-asst/node_modules/@pankod/refine-nextjs-router/dist/refine-nextjs-router.cjs.development.js (134:21)
processChild
file:///Users/weiyang/Ones/fun/xsky-asst/frontend-ng/xsky-asst/node_modules/react-dom/cjs/react-dom-server.node.development.js (3353:14)
resolve
file:///Users/weiyang/Ones/fun/xsky-asst/frontend-ng/xsky-asst/node_modules/react-dom/cjs/react-dom-server.node.development.js (3270:5)
ReactDOMServerRenderer.render
file:///Users/weiyang/Ones/fun/xsky-asst/frontend-ng/xsky-asst/node_modules/react-dom/cjs/react-dom-server.node.development.js (3753:22)
ReactDOMServerRenderer.read
file:///Users/weiyang/Ones/fun/xsky-asst/frontend-ng/xsky-asst/node_modules/react-dom/cjs/react-dom-server.node.development.js (3690:29)
Object.renderToString
file:///Users/weiyang/Ones/fun/xsky-asst/frontend-ng/xsky-asst/node_modules/react-dom/cjs/react-dom-server.node.development.js (4298:27)
Object.renderPage
file:///Users/weiyang/Ones/fun/xsky-asst/frontend-ng/xsky-asst/node_modules/next/dist/server/render.js (621:45)
Object.defaultGetInitialProps
file:///Users/weiyang/Ones/fun/xsky-asst/frontend-ng/xsky-asst/node_modules/next/dist/server/render.js (301:51)
Function.getInitialProps
node_modules/next/dist/pages/_document.js (145:19)
Desktop (please complete the following information):
- OS: MacOS Monterey
- Browser: Chrome
- Version: 95.0.4638.69
Issue Analytics
- State:
- Created 2 years ago
- Comments:7 (6 by maintainers)
Top Results From Across the Web
[BUG] `refine-nextjs-router` is incompatible with `nextjs ^12.0.3`
Hey @wy-z , We've released @pankod/refine-nextjs-router@2.0.15. Could you approve this issue fixed?
Read more >Upgrade Guide - Next.js
Upgrade Guide. Upgrading from 12 to 13. To update to Next.js version 13, run the following command using your preferred package manager:
Read more >node.js - Github Actions Build fails for Nextjs giving :Error ...
I am not sure what is the cause of this error, however I managed to get it fixed by dropping borales/actions-yarn and using ......
Read more >@pankod/refine-nextjs-router - npm
refine Next.js router provider. refine is a React-based framework for building internal tools, rapidly. It ships with Ant Design System, ...
Read more >Prismic.io with Next.js and GraphQL. Getting started - Medium
error create-next-app@12.0.7: The engine "node" is incompatible with this module. Expected version ">=12.22.0". Got "12.18.4" error Found incompatible ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hey @wy-z , We’ve released @pankod/refine-nextjs-router@2.0.15. Could you approve this issue fixed?
Works now! Thanks for the support 😃