Closed mirfmaster closed 1 year ago
Could you please upload all of that in a repository? I'm not familiar with nx.
@mcollina Yes, here.
You can start it with nx serve api
and have a look in apps/api/src/main.ts
I have a high suspicion this is caused by nx
. Could you reproduce without nx
? Thx.
You are right.
I can't reproduce it without nx
Thanks @mcollina I will move this issue to nx
repo
Prerequisites
Fastify version
4.11.0
Plugin version
^8.3.0
Node.js version
16.16.0
Operating system
Linux
Operating system version (i.e. 20.04, 11.3, 10)
Linux Mint 21
Description
I don't know whether this problem coming from Nx or Fastify-swagger, let me know if I'm in the wrong place.
I starting new project using Nx monorepo, after few setups my swagger always returning
Here is my code:
Here is the result of printed routes:
Steps to Reproduce
Create workspace:
There will be option and choose:
Create app for api:
There will be option and choose:
Install deps
Copy and paste my code from description to
01group/apps/api/src/main.ts
Start local dev withpnpm nx serve api
and accesshttp://localhost:3000/documentation
Expected Behavior
An accessible swagger ui