question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG] `refine-nextjs-router` is incompatible with `nextjs ^12.0.3`

See original GitHub issue

First of all, thank you for your great work~

Describe the bug refine-nextjs-router is incompatible with nextjs ^12.0.3

To Reproduce

  1. npx superplate-cli xsky-asst
  2. Select your project type › refine-nextjs
  3. Edit package.json, set next version to ^12.0.3
  4. yarn install
  5. yarn dev

Screenshots image image

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:closed
  • Created 2 years ago
  • Comments:7 (6 by maintainers)

github_iconTop GitHub Comments

3reactions
omeraplakcommented, Nov 12, 2021

Hey @wy-z , We’ve released @pankod/refine-nextjs-router@2.0.15. Could you approve this issue fixed?

1reaction
IgnusGcommented, Dec 9, 2021

Seems that the error stayed the same 😦

Could you try again create a new project with superplate?

Works now! Thanks for the support 😃

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found