Serverless-webpack initialization error


#1

Hi,

When I try to test the create note API with the following command:

$ serverless invoke local --function create --path mocks/create-event.json

I get an initialization error for serverless-webpack:

Serverless plugin "serverless-webpack" initialization errored: Unexpected token

Any ideas on how I should troubleshoot? I am a beginner and do not really no where to start.

Thank you!


#2

Solved. No longer a problem.


#3

Oh thanks for reporting back. How did you fix it?


#4

How did you solved this issue @eggi ?


#5

I solved it by updating to the latest version of node.


#6

Thanks for reporting back!