SoftwareBrothers / adminjs-nestjs

NestJS module to import admin the Nest way
MIT License
160 stars 35 forks source link

Support Nest.js 10 #57

Open nodeteamdev opened 1 year ago

nodeteamdev commented 1 year ago

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: myproject@0.0.1
npm ERR! Found: @nestjs/core@9.2.1
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/nestjs@5.1.0
teslitsky commented 1 year ago

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.

niksbanna commented 11 months ago

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