-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Node 20 (LTS) support #8987
Comments
Probably an option for you is to resolve that dependency - if you aren't using it - to nothing. |
Yes, this works. Thanks for the workaround but it's not a very good first use experience. The reason is that Are there plans to update this dependency? I have solved it by the mentioned workaround for now in my {
...
"dependencies": {
"@keystone-6/auth": "^7.0.0",
"@keystone-6/core": "^5.0.0",
"@keystone-6/fields-document": "^7.0.0",
"typescript": "^4.9.5"
},
"resolutionsComments": {
"@prisma/migrate": "Required until https://github.com/keystonejs/keystone/issues/8987 is resolved!"
},
"resolutions": {
"@prisma/migrate": "5.8.1"
}
} This displays a warning but it seems to work.
|
Any updates on this? |
A workaround we did is to stub that package completely with an empty package as we use packages/mssql/package.json (create this file with content below, adjust version) {
"name": "mssql",
"version": "9.1.1"
} Then install it explicitly npm install mssql@file:packages/mssql |
Problem is still there and yes it is strange first time experience |
Got it to work like this instead @Josef-Reichardt {
"name": "keystone-app",
"version": "0.1.0",
"private": true,
"scripts": {
"dev": "keystone dev",
"start": "keystone start",
"build": "keystone build",
"postinstall": "keystone build --no-ui --frozen"
},
"dependencies": {
"@keystone-6/auth": "^7.0.0",
"@keystone-6/core": "^5.0.0",
"@keystone-6/fields-document": "^7.0.0",
"typescript": "^4.9.5"
},
"resolutions": {
"**/@azure/msal-node": "2.7.0"
}
} |
@Jeanclaudeaoun we have updated |
Project setup fails on node 20 (current LTS - with yarn and npm) because of a dependency which is not compatible to node 20:
I've created the app via
yarn create keystone-app
and the setup proceeds withnpm
automatically because it fails withyarn
:But after that, when I remove
package-lock.json
andnode_module
because I want to work withyarn
instead ofnpm
and runyarn install
it reports the following error:npm install
only displays a warning for that:Tested on node v20.4.0 and v20.11.0.
The text was updated successfully, but these errors were encountered: