Closed seantcanavan closed 2 years ago
Hello @seantcanavan 👋
Thank for opening this issue! I've seemed to have jumped the fence a bit there, seem to have forgot to export a few things and add a step to the quickstart.
First of all, envalid
is a peerDependency. We'll have to add that to the steps. I might be mistaken, but that should take care of your build issues? The ENVALID
export should come from nestjs-envalid
. I'll look at all this stuff very soon! If you want to open a pull request on this, it would be much appreciated! 👍
Thanks again!
Sorry I'm very new to TS/Angular/NestJS so I don't think I'm qualified to open a bug report
This should be fixed now :)
Describe the bug In the sample code the value of
Static
is neither declared or imported.Also, the default
config.ts
file has no exported memberENVALID
.Finally, one of the imports is pulling in the entire
envalid
folder fromnode-modules
which is generating additional build errors.To Reproduce Steps to reproduce the behavior:
"nestjs-envalid": "1.2.0",
to package.jsonnpm install
project/src
andtouch env-config.ts
Expected behavior Typescript project builds successfully
Screenshots
Desktop (please complete the following information):