AnomalyInnovations / serverless-nodejs-starter

A Node.js starter for Serverless Framework with ES6 and TypeScript support

Home Page:https://serverless-stack.com/chapters/serverless-nodejs-starter.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Clean install with deploy results in non-webpacked node functions

RandomSort opened this issue · comments

Hi. Thank you for your awesome work with the serverless tool and the best tutorial ever at serverless-stack.com :)

At the moment I have an issue where a clean start with this repo using

serverless install --url https://github.com/AnomalyInnovations/serverless-nodejs-starter --name my-project
cd my-project
npm install
serverless deploy

Yields a function that returns "{"message": "Internal server error"}".
Looking at the cloud watch logs yields

image

This is what leads me to believe the code is not being transpiled.

running serverless deploy -v also does not show a transpiling step which I would be expecting.

randomsort@DESKTOP-6E4HJQG:/c/Users/rando/repos/randomsort/strummr/api2$ serverless deploy -v                                                                                                                      Serverless: Packaging service...
Serverless: Uploading CloudFormation file to S3...
Serverless: Uploading function .zip files to S3...
Serverless: Updating Stack...
Serverless: Checking Stack update progress...
CloudFormation - UPDATE_IN_PROGRESS - AWS::CloudFormation::Stack - api2-dev
CloudFormation - UPDATE_IN_PROGRESS - AWS::Lambda::Function - HelloLambdaFunction                                                                                                                                  CloudFormation - UPDATE_COMPLETE - AWS::Lambda::Function - HelloLambdaFunction
CloudFormation - CREATE_IN_PROGRESS - AWS::ApiGateway::Deployment - ApiGatewayDeployment1569004738433                                                                                                              CloudFormation - CREATE_IN_PROGRESS - AWS::Lambda::Version - HelloLambdaVersionoierhCy1QIFizSMSVEEPKzPwB4Mrz20vnzm0f06Te                                                                                           8
CloudFormation - CREATE_IN_PROGRESS - AWS::ApiGateway::Deployment - ApiGatewayDeployment1569004738433                                                                                                              CloudFormation - CREATE_COMPLETE - AWS::ApiGateway::Deployment - ApiGatewayDeployment1569004738433                                                                                                                 CloudFormation - CREATE_IN_PROGRESS - AWS::Lambda::Version - HelloLambdaVersionoierhCy1QIFizSMSVEEPKzPwB4Mrz20vnzm0f06Te8                                                                                          CloudFormation - CREATE_COMPLETE - AWS::Lambda::Version - HelloLambdaVersionoierhCy1QIFizSMSVEEPKzPwB4Mrz20vnzm0f06Te8                                                                                             CloudFormation - UPDATE_COMPLETE_CLEANUP_IN_PROGRESS - AWS::CloudFormation::Stack - api2-dev                                                                                                                       CloudFormation - DELETE_IN_PROGRESS - AWS::ApiGateway::Deployment - ApiGatewayDeployment1569004225172                                                                                                              CloudFormation - DELETE_SKIPPED - AWS::Lambda::Version - HelloLambdaVersioneTlFeET8DS9kprIZKj0KylifCMRFAS6kV9YuCocO8                                                                                               CloudFormation - DELETE_COMPLETE - AWS::ApiGateway::Deployment - ApiGatewayDeployment1569004225172                                                                                                                 CloudFormation - UPDATE_COMPLETE - AWS::CloudFormation::Stack - api2-dev                                                                                                                                           Serverless: Stack update finished...                                                                                                                                                                               Service Information                                                                                                                                                                                                service: api2                                                                                                                                                                                                      stage: dev                                                                                                                                                                                                         region: us-east-1                                                                                                                                                                                                  api keys:                                                                                                                                                                                                            None                                                                                                                                                                                                             endpoints:                                                                                                                                                                                                           GET - https://iu85j49370.execute-api.us-east-1.amazonaws.com/dev/hello                                                                                                                                           functions:                                                                                                                                                                                                           api2-dev-hello: arn:aws:lambda:us-east-1:079017483547:function:api2-dev-hello                                                                                                                                                                                                                                                                                                                                                       Stack Outputs                                                                                                                                                                                                      HelloLambdaFunctionArn: arn:aws:lambda:us-east-1:079017483547:function:api2-dev-hello                                                                                                                              HelloLambdaFunctionQualifiedArn: arn:aws:lambda:us-east-1:079017483547:function:api2-dev-hello:3                                                                                                                   ServiceEndpoint: https://iu85j49370.execute-api.us-east-1.amazonaws.com/dev                                                                                                                                        ServerlessDeploymentBucketName: api2-dev-serverlessdeploymentbucket-11dklyd5iu12o        
```.

This is using serverless version 1.5.0. 

Thanks in advance.

Updating to serverless 1.5.2 solved the problem - I do not know why.