Closed hongdor closed 2 years ago
Could you please provide a minimum reproduction repository for this? It will help the core team and folks like me to understand your issue faster.
Could you please provide a minimum reproduction repository for this? It will help the core team and folks like me to understand your issue faster.
I'm sorry. this is my code (deleted)
I solved it
I added <"webpack" : true > in the nest-cli.json file
(you can check the contents in the document below https://docs.nestjs.com/cli/monorepo#cli-properties)
{
"collection": "@nestjs/schematics",
"sourceRoot": "src",
"compilerOptions": {
"webpack": true,
"plugins": [
{
"name": "@nestjs/swagger",
"options": {
"classValidatorShim": false,
"introspectComments": true
}
}
]
}
}
I'm submitting a...
Current behavior
I think there is a problem with referring to the src dir. but The build foler is dist dir.
npm run start:dev => OK npm run start / npm run start:prod => Fail
I use nestJs hot-reload function It was normal before the openapi(swagger) cli plugin of nestjs was applied.
All config setting followed the official document of the nestjs
Expected behavior
Minimal reproduction of the problem with instructions
farm.controller.ts
What is the motivation / use case for changing the behavior?
Environment