Skip to content
This repository has been archived by the owner on Jul 20, 2024. It is now read-only.

gulp lambda:init doesn't work #10

Closed
Yishay opened this issue Oct 7, 2018 · 2 comments
Closed

gulp lambda:init doesn't work #10

Yishay opened this issue Oct 7, 2018 · 2 comments

Comments

@Yishay
Copy link

Yishay commented Oct 7, 2018

Hi,

I followed the steps in the help and got:

...\node_modules\aws-lambda-typescript\localServer.js:6
  app.post('/', async (req, res) => {
                      ^
SyntaxError: Unexpected token (
    at createScript (vm.js:56:10)
    at Object.runInThisContext (vm.js:97:10)
    at Module._compile (module.js:542:28)
    at Object.Module._extensions..js (module.js:579:10)
    at Module.load (module.js:487:32)
    at tryModuleLoad (module.js:446:12)
    at Function.Module._load (module.js:438:3)
    at Module.require (module.js:497:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (...\node_modules\aws-lambda-typescript\index.js:10:21)

Help will be appreciated.
Thanks,
Yishay

@Yishay
Copy link
Author

Yishay commented Oct 7, 2018

seems to be a node version
fastify/benchmarks#16
I'll try it with another node version

@Yishay
Copy link
Author

Yishay commented Oct 7, 2018

worked with node 10

@Yishay Yishay closed this as completed Oct 7, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant