adminjs-nestjs icon indicating copy to clipboard operation
adminjs-nestjs copied to clipboard

Support Nest.js 10

Open nodeteamdev opened this issue 1 year ago • 2 comments

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]

nodeteamdev avatar Jun 20 '23 06:06 nodeteamdev

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.

teslitsky avatar Sep 20 '23 11:09 teslitsky

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"
  },

niksbanna avatar Nov 04 '23 04:11 niksbanna