Hi All, I have environment variable set and when I try to infer in my project, says
Error - this provider does not exist in the current context , Am I doing something wrong
Would we not be able to infer in app.get() the constants ?
customService and customServiceName are the same
main.ts file
import { customService } from './module/customServiceName.service'
const customServiceName = process.env.CUSTOM_SERVICE
if (customServiceName) {
const service = app.get(customServiceName)
} else {
// do something
}