serverless-components / tencent-express

Easily deploy serverless Express.js applications to Tencent Cloud with the Serverless Framework
MIT License
103 stars 15 forks source link

express › TypeError: Cannot read property 'isDisabled' of undefined #13

Closed myncepu closed 4 years ago

myncepu commented 4 years ago

Following the README.md, when run sls --debug, an error occurred:


  DEBUG ─ Resolving the template's static variables.
  DEBUG ─ Collecting components from the template.
  DEBUG ─ Downloading any NPM components found in the template.
  DEBUG ─ Analyzing the template's components dependencies.
  DEBUG ─ Creating the template's components graph.
  DEBUG ─ Syncing template state.
  DEBUG ─ Executing the template's components graph.
  DEBUG ─ Removing function
  DEBUG ─ Request id
  DEBUG ─ Compressing function ExpressComponent_rhy2ma file to ~Desktop/test-tencent-serverless-express/.serverless/ExpressComponent_rhy2ma.zip.
  DEBUG ─ Compressed function ExpressComponent_rhy2ma file successful
  DEBUG ─ Uploading service package to cos[sls-cloudfunction-ap-beijing-code]. sls-cloudfunction-default-ExpressComponent_rhy2ma-1579861004.zip
  DEBUG ─ Uploaded package successful ~/Desktop/test-tencent-serverless-express/.serverless/ExpressComponent_rhy2ma.zip
  DEBUG ─ Creating function ExpressComponent_rhy2ma
  DEBUG ─ Created function ExpressComponent_rhy2ma successful
  DEBUG ─ Setting tags for function ExpressComponent_rhy2ma
  DEBUG ─ Creating trigger for function ExpressComponent_rhy2ma
  DEBUG ─ Deployed function ExpressComponent_rhy2ma successful

  error:
  TypeError: Cannot read property 'isDisabled' of undefined
    at TencentExpress.default (~/.serverless/components/registry/npm/@serverless/tencent-express@2.2.0/node_modules/@serverless/tencent-express/serverless.js:60:32)
    at <anonymous>

  19s › express › TypeError: Cannot read property 'isDisabled' of undefined

I don't know why, and what should I do?

golezi commented 4 years ago

14