serverless: SLS no longer working after update to 1.67.2

Bug Report

After updating to 1.67.2 (from 1.67.0), I see the following error:

$ sls --version                                                                                                       
/usr/local/lib/node_modules/serverless/node_modules/serverless-tencent-tools/sdk/debug/lib/wshub-client/index.js:88
var __spreadArrays =
^^^

SyntaxError: Unexpected token var
    at new Script (vm.js:79:7)
    at createScript (vm.js:251:10)
    at Object.runInThisContext (vm.js:303:10)
    at Module._compile (internal/modules/cjs/loader.js:657:28)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
    at Module.load (internal/modules/cjs/loader.js:599:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
    at Function.Module._load (internal/modules/cjs/loader.js:530:3)
    at Module.require (internal/modules/cjs/loader.js:637:17)
    at require (internal/modules/cjs/helpers.js:22:18)

Description

See above. Removing Serverless and reinstalling doesn’t help either.

  1. What did you do? Update to version 1.67.2
  2. What happened? Serverless is no longer working
  3. What should’ve happened? Serverless works like before

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Reactions: 3
  • Comments: 16 (2 by maintainers)

Most upvoted comments

@dallinwright I can confirm 1.64.1 is working:

$ sls --version                                              
Framework Core: 1.64.1
Plugin: 3.6.6
SDK: 2.3.0
Components Core: 1.1.2
Components CLI: 1.4.0

@tobilg great thanks for reporting. I’m on that, fix will be issued shortly

Last working version now seems to be 1.64.1 due to this fragile dependency.

Temporary fix is to downgrade to 1.64.1, or manually apply the git patch from the other linked issue to that module.

Same here too. First time using serverless, i am glad that i am not the only one ^^.

Downgraded to 1.64.1 like the previous comment suggest did the trick, thanks !

@tobilg v1.67.3 was just published

It got it also working by not installing serverless global but in the local node_modules and calling ./node_modules/serverless/bin/serverless deploy --stage=prod;