question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Lambda now supports Node 8.10… how do we enable?

See original GitHub issue

Hi

Lambda now supports Node 8.10 (finally)!

https://docs.aws.amazon.com/lambda/latest/dg/programming-model.html

Does serverless-webpack just work if you change the serverless.yml file to use Node 8.10 or are there .babelrc and/or webpack.config.js changes required to make this work?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:11 (5 by maintainers)

github_iconTop GitHub Comments

7reactions
greeniecommented, Apr 3, 2018

@ChristopheBougere I was having the same issue as you were with object spreads resulting in an unexpected token error. Turns out, you need the babel-plugin-syntax-object-rest-spread package for babel to parse - but not transform - the spread syntax so it’ll work natively in Node 8.

npm i --save-dev babel-plugin-syntax-object-rest-spread

then in your .babelrc

{
  "plugins": ["syntax-object-rest-spread"]
}

Hope that helps.

6reactions
HyperBraincommented, Apr 3, 2018

Did you try to remove the babel loader completely from module: rules and use the very latest webpack version? According to webpack’s documentation, loaders should be optional (just read through it) and webpack itself should understand plain JS. (However, I remember that the import statement is not yet supported in Node 8).

Read more comments on GitHub >

github_iconTop Results From Across the Web

AWS Lambda Supports Node.js v8.10
You can now develop your AWS Lambda functions using Node.js v8.10. ... in Node.js 8.10 can now use the async/await pattern to specify...
Read more >
AWS Lambda Node 8.10 EOL migration | Datree.io
The TL;DR is that the Node community decided to collectively stop supporting Node 8.10 on December 31st, 2019, so AWS is disabling the...
Read more >
AWS Node 8.10 runtime for Lambdas! - Migration guide
10 locally, recompile node modules, update the serverless.yml and use the runtime: nodejs8.10 and deploy on AWS. This should work for any ...
Read more >
NodeJS Lambda | The Complete Guide to Get Started 101
You 'll need a NodeJS runtime first. Now you must install a NodeJS version that AWS Lambda supports. In this post, NodeJS 8.10...
Read more >
Lambda now supports Node.js 8.10 : r/aws - Reddit
After deploying an application recently on Lambda, I opened the console today and noticed that Node 8 is now available to select when...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found