@nest/swagger example does not work in my wsl2
See original GitHub issueI’m submitting a…
[ ] Regression
[x] Bug report
[ ] Feature request
[ ] Documentation issue or request
[ ] Support request => Please do not submit support request here, instead post your question on Stack Overflow.
Current behavior
I tried the official working example in my wsl2. After I started the nest app and go to http://localhost:3000/api/, I clicked any route in cats tag, then the page flashed and this route went to default tag, and the current url is http://localhost:3000/api/#/default/post_cats. Then, I clicked this route, it will keep loadding like the flowing picture.
The nest log is:
yarn run v1.22.4
$ nest start
[Nest] 17403 - 07/22/2020, 3:16:25 PM [NestFactory] Starting Nest application...
[Nest] 17403 - 07/22/2020, 3:16:25 PM [InstanceLoader] AppModule dependencies initialized +10ms
[Nest] 17403 - 07/22/2020, 3:16:25 PM [InstanceLoader] CatsModule dependencies initialized +0ms
[Nest] 17403 - 07/22/2020, 3:16:25 PM [RoutesResolver] CatsController {/cats}: +39ms
[Nest] 17403 - 07/22/2020, 3:16:25 PM [RouterExplorer] Mapped {/cats, POST} route +2ms
[Nest] 17403 - 07/22/2020, 3:16:25 PM [RouterExplorer] Mapped {/cats/:id, GET} route +1ms
[Nest] 17403 - 07/22/2020, 3:16:25 PM [NestApplication] Nest application successfully started +1ms
Application is running on: http://[::1]:3000
There is not log in the browser.
Expected behavior
I want to see the detailed route infomation.
Minimal reproduction of the problem with instructions
Official working example.
Environment
Nest version: 7.3.2
For Tooling issues:
- Node version: 14.5.0
- Platform: Windows Subsystem for Linux 2, Ubuntu-20.04, Linux 4.19.104-microsoft-standard, Windows10 2004
Others:
Issue Analytics
- State:
- Created 3 years ago
- Comments:8 (2 by maintainers)
Top Results From Across the Web
Nest + Swagger not recognizing endpoints or parameters
I'm having an issue with Nest + Swagger. When I open my swagger docs I see all of the endpoints I expect but...
Read more >class extends value undefined is not a constructor or null nestjs
I have used the SentryModule.forRoot example as mentioned in the readme file of nestjs-sentry. I am getting the following error when I am...
Read more >Darragh ORiordan: I help you build awesome web ...
Hi! I'm Darragh ORiordan. I live and work in Sydney, Australia building and supporting happy teams that create high quality software for the...
Read more >Building a RESTful API with NestJS and MongoDB (Mongoose)
Then that should open up your IDE. Creating "Todo" feature. We can easily generate code for the Module class, Service class, Controller class...
Read more >Blog | Aitor Alonso (aalonso.dev)
This is my blog. Every time I learn something new about programming, I post here about it. I write about nodejs, react, wsl,...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
change [swagger-ui-dist version “3.30.1”] to [version “3.26.2”] can resolve this problem
This issue is indeed related to the
swagger-ui-dist
. Please note that an issue is already raised on their bug tracker.As a workaround you can leverage yarn resolutions and add the following to your
package.json
as stated here