Closed yar2001 closed 1 week ago
Oh I know exactly whats the issue, let me push a quick fix for it.
I've basically changed how we do the file resolution, and need to disable it when autoSchemaFile
is disabled since in production you build the code without the typescript code next to it.
Let me push a quick fix for it.
Edit:
To answer your question, in order to generate the schema file on the fly the adapter needs to somehow get the original TS file to read it and infer types, import maps etc...
To do this I have a method that basically searches for the root app.module.ts
if you opted to generate the schema file, you can see how this works under the GeneratorModule
.
Should be fixed in v1.5.1
: https://www.npmjs.com/package/nestjs-trpc
I've tested it locally and it seems to have worked, but can you confirm on your end?
Yes, I pushed a new image and it worked.
Thanks a lot, that was awesome!
Hi, when I deploy my project in k8s, it throws the
Could not access root module file
error:What does
root module file
mean? Should I copy some files more thandist
ornode_modules
in my container?Here is the dockerfile:
I have already disabled the schema file generation:
Thank you for your reading!