serverless / serverless-azure-functions

Serverless Azure Functions Plugin – Add Azure Functions support to the Serverless Framework
MIT License
266 stars 161 forks source link

python: Cannot read property 'x-azure-settings' of undefined #556

Open bitsofinfo opened 3 years ago

bitsofinfo commented 3 years ago
10:02 $ serverless -v
Framework Core: 2.44.0
Plugin: 5.2.0
SDK: 4.2.3
Components: 3.11.0
serverless create -t azure-python -p test1

cd test1
npm install
serverless offline
Serverless: Initializing provider configuration...
Serverless: Python functions can ONLY run on Linux Function Apps. Switching now
Serverless: Building offline service
Serverless: Parsing Azure Functions Bindings.json...
Serverless: Parsing Azure Functions Bindings.json...
Serverless: Building binding for function: hello event: httpTrigger

 Type Error ----------------------------------------------

  TypeError: Cannot read property 'x-azure-settings' of undefined
bitsofinfo commented 3 years ago

If I change

  "devDependencies": {
    "serverless-azure-functions": "1.0.2-22"
  }

to

  "devDependencies": {
    "serverless-azure-functions": "^2.0.0"
  }

then npm install

and serverless offline... then it works

Why is the template for azure-python referencing this old version?