Serverless-webpack initialization error


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!

Solved. No longer a problem.

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

How did you solved this issue @eggi ?

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

1 Like

Thanks for reporting back!

1 Like