adminjs-nestjs
adminjs-nestjs copied to clipboard
Support Nest.js 10
I found next error after upgrade Nest.js to version 10.
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: [email protected]
npm ERR! Found: @nestjs/[email protected]
npm ERR! node_modules/@nestjs/core
npm ERR! @nestjs/core@"10.0.2" from the root project
npm ERR! peer @nestjs/core@">=9.0.5" from @adminjs/[email protected]
In fact, AdminJS supports NestJS@10. I was getting the same issue when I tried to upgrade packages. But manually uninstalling npm uninstall @adminjs/nestjs @nestjs/common @nestjs/config @nestjs/core @nestjs/platform-express @nestjs/testing
and installing the latest versions fixed it.
I am using NEST v10.1.10 and it's working fine for me. Here is my dependencies list
"dependencies": {
"@adminjs/express": "^6.0.1",
"@adminjs/mongoose": "^4.0.0",
"@adminjs/nestjs": "^6.0.1",
"@nestjs/common": "^10.0.0",
"@nestjs/config": "^3.1.1",
"@nestjs/core": "^10.0.0",
"@nestjs/mongoose": "^10.0.1",
"@nestjs/platform-express": "^10.0.0",
"adminjs": "^7.3.0",
"express-formidable": "^1.2.0",
"express-session": "^1.17.3",
"mongoose": "^7.6.3",
"reflect-metadata": "^0.1.13",
"rxjs": "^7.8.1"
},