Closed erickalmeidaptc closed 3 years ago
Same there. Really need it and it not working for now.
I researched a bit and there is a chance of error because of old (for now) @nestjs/common - 7.4.2. There was some changes like sse and new fastify version (tell me if i`m wrong) so something was changed.
Not 100% sure that will help but can be easy fix solution
@mxarc So what i did:
Seems like its bug due to new nestjs version. Just updating all dependencies should fix it.
"nestjs-redoc": "1.3.1",
works for me
"nestjs-redoc": "1.3.1",
works for me
Can u share ur package.json?
Tryed 1.3.1 and still same error
"dependencies": {
"@hapi/joi": "^17.1.1",
"@nestjs/common": "^7.5.1",
"@nestjs/config": "^0.5.0",
"@nestjs/core": "^7.5.1",
"@nestjs/jwt": "^7.2.0",
"@nestjs/microservices": "^7.5.1",
"@nestjs/passport": "^7.1.0",
"@nestjs/platform-express": "^7.5.1",
"@nestjs/swagger": "^4.7.0",
"@types/passport-jwt": "^3.0.3",
"amqp-connection-manager": "^3.2.1",
"amqplib": "^0.6.0",
"class-transformer": "^0.3.1",
"class-validator": "^0.12.2",
"express": "^4.17.1",
"nestjs-redoc": "1.3.1",
"passport": "^0.4.1",
"passport-jwt": "^4.0.0",
"reflect-metadata": "^0.1.13",
"rimraf": "^3.0.2",
"rxjs": "^6.5.4",
"swagger-ui-express": "^4.1.4"
},
@rankery @erickalmeidaptc Please update to the latest version (2.0.3), should work for you now
npm i nestjs-redoc@2.0.3
I'm using NestJS 7.5.1.
And I got this error.
39 await RedocModule.setup('/docs', app, document, redocOptions);