I have confirmed that pagination is working and the allKnowledgePages have 100+ records.
But the problem is I’m getting this error:
Error: Call retries were exceeded
at ChildProcessWorker.initialize (/project/node_modules/next/dist/compiled/jest-worker/index.js:1:11661)
at ChildProcessWorker._onExit (/project/node_modules/next/dist/compiled/jest-worker/index.js:1:12599)
at ChildProcess.emit (node:events:520:28)
at Process.ChildProcess._handle.onexit (node:internal/child_process:291:12) {
type: 'WorkerError'
}
@itsahmedkamal, can I ask what version of Next.js you’re using, what version of Node.js it’s on, and what kind of hardware you’re running it on in development?
I’m trying to see if it’s another variant of a Next.js bug or if it’s a new problem altogether.
@itsahmedkamal I’m so sorry for the slow reply here! I was out of the office last week and the handoff didn’t work right. I apologize.
The good news is that I’ve since made a Next 13.3.0 repo and managed to reproduce your issue. Fortunately, upgrading to 13.3.4 seems to fix the issue with no code changes.
Could you please try that? It should hopefully be as simple as changing your Next dependency in package.json to: "next": "13.3.4" and running npm install again. Please let me know if that helps at all.
If that fixed it, you may also wish to consider using SemVer indicators in your package.json, like "^13.3.4" (for minor versions) or "~13.3.4" (for patch versions) so that your packages can auto-upgrade across versions that only have bugfixes or backward-compatible new features.
If upgrading to 13.3.4 did not fix your issue, could you please provide a sample repo (a MVP is fine, with just the files demonstrating the problem, and any private secrets, etc. stripped out)? If you don’t want to make it public, you can email us the details at support@datocms.com (and CC me at r.tuan@datocms.com if you’d like).