AnomalyInnovations / serverless-stack-demo-api

Source for the demo app API in the Serverless Stack Guide
https://demo.serverless-stack.com
MIT License
517 stars 197 forks source link

Returning for async functions not working on prior demo #24

Closed buckybots closed 6 years ago

buckybots commented 6 years ago

I tried implementing this change, but I must be missing updating something in the setup. What package update enabled this change?

I compared all my dependencies in package.json, and they are all newer versions than the ones used in the working example that includes async without the callback. My version is working with async WITH the callback, but returns nothing if I modify to match the example.

Here are my dependencies from package.json :+1: "dependencies": { "aws-sdk": "^2.245.1", "babel-runtime": "^6.26.0", "source-map-support": "^0.5.6" }, "devDependencies": { "babel-core": "^6.26.3", "babel-loader": "^7.1.4", "babel-plugin-source-map-support": "^2.0.1", "babel-plugin-transform-runtime": "^6.23.0", "babel-preset-env": "^1.7.0", "babel-preset-stage-3": "^6.24.1", "serverless-apigw-binary": "^0.4.4", "serverless-apigwy-binary": "^0.1.0", "serverless-offline": "^3.23.1", "serverless-webpack": "^5.1.5", "webpack": "^4.8.3", "webpack-node-externals": "^1.7.2"

buckybots commented 6 years ago

My local version of my npm packages was not up to what I had used on a different setup. Running "$npm update" brought my packages up to date, and this worked.