Open Mario2280 opened 2 weeks ago
May I use the same reproducible repo with #922?
https://github.com/samchon/nestia/blob/master/packages/core/src/decorators/DynamicModule.ts
About the DynamicModule
, this is the type of it. In your case, you can just mount controllers by only writing a string literal value "src/modules/**/*.controller.ts"
.
May I use the same reproducible repo with #922? I recreated this repository from your template. I think that there will not be the same error because everything is configured by you, I can try to change it according to the structure of my project, but I am not sure if this will reproduce the error. I'll try to change the repository and post if I can reproduce the problem
https://github.com/samchon/nestia/blob/master/packages/core/src/decorators/DynamicModule.ts
About the
DynamicModule
, this is the type of it. In your case, you can just mount controllers by only writing a string literal value"src/modules/**/*.controller.ts"
.
I'm a very lazy person) Is it possible to somehow register this setting in the nestia config so that you don’t have to go into the generated file every time and fix it manually?If you have to somehow automate this process, it will be impossible due to incorrect generation of mount contents and errors with
import type { e } from "@types/express/index";
@samchon ?
I Try to generate e2e. That's what I did(I run these commands one after another):
This is my test/tsconfig
This is parent
Nestia.config.ts
I'm getting something strange in index.ts in tests in await core.DynamicModule.mount like the picture below. I change this to AppModule manually. How to avoid this problem?![image](https://github.com/samchon/nestia/assets/51860597/4f398a18-fbb4-41bb-be2f-c93dc1ecba58)
Next I try to run the command
And I get a million of these errors:
How can this be fixed? I tried changing different tsconfig settings, such as strict, esModuleInterop and something else, but I was unable to compile and run the tests without errors. Since this error() was related to typing, I could simply ignore it and run
But it's kind of hard to fix it every time.