dherault / serverless-offline

Emulate AWS λ and API Gateway locally when developing your Serverless project
MIT License
5.16k stars 794 forks source link

serverless offline with angular cli application #1759

Open edvenkat opened 4 months ago

edvenkat commented 4 months ago

Hi @guillaume @leemhenson @demetriusnunes @frodeaa @starsprung

I am attempting to utilize the application builder instead of webpack as per the instructions provided in the link - https://angular.io/guide/esbuild. However, we encountered the following error while running the application in serverless offline.

undefined ERROR Uncaught Exception { "errorType": "Runtime.ImportModuleError", "errorMessage": "Error: Cannot find module './dist/server/server'\nRequire stack:\n- /var/task/lambda.js\n- /var/runtime/index.mjs", "stack": [ "Runtime.ImportModuleError: Error: Cannot find module './dist/server/server", "Require stack:", "- /var/task/lambda.js", "- /var/runtime/index.mjs", " at _loadUserApp (file:///var/runtime/index.mjs:1087:17)", " at async UserFunction.js.module.exports.load (file:///var/runtime/index.mjs:1119:21)", " at async start (file:///var/runtime/index.mjs:1282:23)", " at async file:///var/runtime/index.mjs:1288:1" ] }

Please help on this.