TrilonIO / aspnetcore-angular-universal

ASP.NET Core & Angular Universal advanced starter - PWA w/ server-side rendering for SEO, Bootstrap, i18n internationalization, TypeScript, unit testing, WebAPI REST setup, SignalR, Swagger docs, and more! By @TrilonIO
https://www.trilon.io
MIT License
1.46k stars 434 forks source link

AWS lambda support #699

Open raban33 opened 5 years ago

raban33 commented 5 years ago

Dear Author - I was able to get the project compiled and deployed on AWS lambda by adding LambdaEntryPoint.cs and Serverless template. However I am not sure what version of nodejs does the .NET Core 2.1 runtime image uses and I do get the below mentioned error. Any way to upgrade nodejs runtime while using .net core 2.1?

Error: "An unhandled exception occurred while processing the request. NodeInvocationException: Prerendering failed because of error: SyntaxError: Unexpected token , at Module._compile (module.js:439:25) at Object.Module._extensions..js (module.js:474:10) at Module.load (module.js:356:32) at Function.Module._load (module.js:312:12) at Module.require (module.js:364:17) at require (module.js:380:17) at findBootModule (/tmp/bi4o3anb.zu5:111:17) at findRenderToStringFunc (/tmp/bi4o3anb.zu5:116:28) at renderToStringImpl (/tmp/bi4o3anb.zu5:75:51) at /tmp/xwnkguqh.5ct:114:19 Current directory is: /var/task Microsoft.AspNetCore.NodeServices.HostingModels.HttpNodeInstance.InvokeExportAsync(NodeInvocationInfo invocationInfo, CancellationToken cancellationToken)"

here is the Url: https://b617h1huz0.execute-api.us-west-1.amazonaws.com/Prod

any insight into this would be appreciated.