Closed rburgst closed 4 months ago
Also note that when I tried to create a fresh keystone app (to check what should be changed) I am getting this problem
yarn create keystone-app@latest
➤ YN0000: ┌ Resolution step
➤ YN0000: └ Completed in 1s 215ms
➤ YN0000: ┌ Fetch step
➤ YN0000: └ Completed
➤ YN0000: ┌ Link step
➤ YN0000: │ ESM support for PnP uses the experimental loader API and is therefore experimental
➤ YN0000: └ Completed
➤ YN0000: Done with warnings in 1s 306ms
/Users/rainer/.yarn/berry/cache/meow-npm-9.0.0-8b2707248e-8.zip/node_modules/meow/index.js:15
delete require.cache[__filename];
^
TypeError: Cannot convert undefined or null to object
at Object.<anonymous> (/Users/rainer/.yarn/berry/cache/meow-npm-9.0.0-8b2707248e-8.zip/node_modules/meow/index.js:15:22)
at loadCJSModule (node:internal/modules/esm/translators:262:3)
at ModuleWrap.<anonymous> (node:internal/modules/esm/translators:297:7)
at ModuleJob.runSync (node:internal/modules/esm/module_job:212:17)
at require (node:internal/modules/esm/translators:247:9)
at Object.<anonymous> (/Users/rainer/.yarn/berry/cache/create-keystone-app-npm-9.0.1-4993dfb452-8.zip/node_modules/create-keystone-app/dist/create-keystone-app.cjs.dev.js:5:12)
at loadCJSModule (node:internal/modules/esm/translators:262:3)
at ModuleWrap.<anonymous> (node:internal/modules/esm/translators:297:7)
at ModuleJob.runSync (node:internal/modules/esm/module_job:212:17)
at require (node:internal/modules/esm/translators:247:9)
Node.js v20.14.0
Hi @rburgst,
error - Error: Cannot find module 'next/dist/shared/lib/constants.js'
Can you verify that your next
version is the same as Keystone's?
the site is broken, I get only 404 pages.
Fwiw, this was resolved yesterday with https://github.com/keystonejs/keystone/pull/9227, unintentionally broken in https://github.com/keystonejs/keystone/pull/9220
Hm, after downgrading, I upgraded again today and the problem is gone, when I do
yarn why next
└─ @keystone-6/core@npm:6.1.0
└─ next@npm:13.3.2 [ed1e6] (via npm:^13.3.0 [ed1e6])
this is the next version I am getting. Note that last time, I did delete my .keystone
and node_modules
folder (however, I did not delete the lock file).
The only relevant difference I could spot between my old package.json
and the current working one is
"graphql": "16.9.0",
instead of 16.8.0
. However, that couldnt really be responsible for the next problem IMHO.
After upgrading to the latest version I am getting the following error
Any idea what could have caused this? I could not really find a migration guide.
Node 20.14.0
I tried to look at the web site for an upgrade guide but it seams that the site is broken, I get only 404 pages.
These are my dependencies