Open dinesh-bade opened 3 years ago
I recommend getting the example Nest application running first and then adding in your own app on top. That will help diagnose the problem.
@brettstack it works completely fine if i just run it with nest js start command and but while i try run it from serverless-stack it's not working . We are getting below warning `
node_modules/express/lib/view.js:81:13: warning: This call to "require" will not be bundled because the argument is not a string literal (surround with a try/catch to silence this warning)
81 │ var fn = require(mod).__express
╵ ~~~~~~~
`
Did you find a way? I am having the same problem.
I found it.
const app = await NestFactory.create(AppModule);
await app.init();
If you don't call listen
, you have to explicitly call init
.
Having the same issue when using as a "standalone app" running locally with sam local invoke
: https://docs.nestjs.com/standalone-applications
We are trying to integrate the NestJs with serverless stack and AWS . We have simple Controller that has a Service as a dependency. when we make request to the controller the serviceObject that should contain the Service instance instead gives us undefined .
Below is our app.module.ts file contain
`
`
Lambda.ts contain `
`
Main.ts
`
`