Closed akash-gupt closed 4 years ago
@frco9 @NKJe @asheliahut @avatsaev
Honestly it seems just fine. Are you sure that there is a issue in the listed code? I tested it locally, and it worked just fine. Only added a PrimaryColumn
and changed type of IdType
.
@NKJe
PrimaryColumn
is already defined on BaseEntity, I tried everything every CrudController have same problem
Well, I generated a completely clean installation using nest new ...
and then added typeorm crud-typeorm and swagger stuff... and added your code, with the previously mentioned changes. And it seems fine. Made a repository: https://github.com/NKJe/prof
The use of next.handle makes me want to believe there is an issue in a middleware you are using in your stack. Can you provide a version of the library that you are using? As Nkje just said there doesn't seem to be anything in the recent releases that is causing this.
"@nestjs/common": "^5.4.0", "@nestjs/core": "^5.4.0", "@nestjs/jwt": "^6.1.1", "@nestjs/passport": "^6.1.0", "@nestjs/swagger": "^2.5.1", "@nestjs/typeorm": "^6.2.0", "@nestjsx/crud": "^4.2.0", "@nestjsx/crud-typeorm": "^4.2.0", "@phc/argon2": "^1.0.9", "@types/md5": "^2.1.33", "class-transformer": "^0.2.3", "class-validator": "^0.11.0", "dateformat": "^3.0.3", "md5": "^2.2.1", "mysql2": "^1.6.5", "node-schedule": "^1.3.2", "nodemailer": "^5.1.1", "passport": "^0.4.0", "passport-jwt": "^4.0.0", "pg": "^7.12.1", "pg-hstore": "^2.3.3", "reflect-metadata": "^0.1.12", "rimraf": "^2.6.2", "rxjs": "^6.2.2", "sequelize": "^4.42.0", "sequelize-cli": "^5.4.0", "sequelize-typescript": "^0.6.7", "typeorm": "^0.2.20", "typescript": "^3.0.1", "upash": "^1.0.2"
Thanks
I'm having the same "next.handle is not a function" issue. Clean app, just set up nestjsx/crud, no funky middleware or the such
@vrxj81 what's your nest version? It should be 6 at least
TypeError: next.handle is not a function at CrudRequestInterceptor.intercept