You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm running into an issue regarding deploying a single function. I can deploy all of the functions using sls deploy but I have the issue of Cannot set property 'artifact' of undefined whenever I attempt to deploy a single one. I have included my versions, a traceback of the issue and my serverless.yml file.
My versions are:
OS: darwin (specifically macOS Version 10.14 Beta (18A293u)
Node Version: 6.11.1
Serverless Version: 1.32.0
Serverless-python-requirements: 4.1.0
Below is my traceback from attempting to run a single function deploy:
Cosmos:PROJECT_ALPHA MrTeale$ sls deploy function -f strategy
Serverless: Load command config
Serverless: Load command config:credentials
Serverless: Load command create
Serverless: Load command install
Serverless: Load command package
Serverless: Load command deploy
Serverless: Load command deploy:function
Serverless: Load command deploy:list
Serverless: Load command deploy:list:functions
Serverless: Load command invoke
Serverless: Load command invoke:local
Serverless: Load command info
Serverless: Load command logs
Serverless: Load command login
Serverless: Load command logout
Serverless: Load command metrics
Serverless: Load command print
Serverless: Load command remove
Serverless: Load command rollback
Serverless: Load command rollback:function
Serverless: Load command slstats
Serverless: Load command plugin
Serverless: Load command plugin
Serverless: Load command plugin:install
Serverless: Load command plugin
Serverless: Load command plugin:uninstall
Serverless: Load command plugin
Serverless: Load command plugin:list
Serverless: Load command plugin
Serverless: Load command plugin:search
Serverless: Load command config
Serverless: Load command config:credentials
Serverless: Load command rollback
Serverless: Load command rollback:function
Serverless: Load command create_domain
Serverless: Load command delete_domain
Serverless: Load command requirements
Serverless: Load command requirements:clean
Serverless: Load command requirements:install
Serverless: WARNING: Missing "tenant" and "app" properties in serverless.yml. Without these properties, you can not publish the service to the Serverless Platform.
Serverless: Invoke deploy:function
Serverless: Installing requirements of src/api/requirements.txt in .serverless/src/api...
Serverless: Docker Image: lambci/lambda:build-python3.6
Serverless: Installing requirements of src/scheduler/requirements.txt in .serverless/src/scheduler...
Serverless: Docker Image: lambci/lambda:build-python3.6
Serverless: Installing requirements of src/strategy/requirements.txt in .serverless/src/strategy...
Serverless: Docker Image: lambci/lambda:build-python3.6
Serverless: Copying vendor libraries from ./src/parser to .serverless/src/strategy/requirements...
Serverless: Installing requirements of src/analysis/requirements.txt in .serverless/src/analysis...
Serverless: Docker Image: lambci/lambda:build-python3.6
Serverless: Invoke package:function
Serverless: Packaging function: strategy...
Serverless: Excluding development dependencies...
Serverless: Injecting required Python packages to package...
Type Error ---------------------------------------------
Cannot set property 'artifact' of undefined
For debugging logs, run again after setting the "SLS_DEBUG=*" environment variable.
Stack Trace --------------------------------------------
TypeError: Cannot set property 'artifact' of undefined
at BbPromise.resolve.filter.map.map.func (/Users/MrTeale/Desktop/PROJECT_ALPHA/node_modules/serverless-python-requirements/lib/inject.js:102:33)
From previous event:
at PluginManager.invoke (/usr/local/lib/node_modules/serverless/lib/classes/PluginManager.js:390:22)
at PluginManager.run (/usr/local/lib/node_modules/serverless/lib/classes/PluginManager.js:421:17)
at variables.populateService.then.then (/usr/local/lib/node_modules/serverless/lib/Serverless.js:157:33)
at runCallback (timers.js:672:20)
at tryOnImmediate (timers.js:645:5)
at processImmediate [as _immediateCallback] (timers.js:617:5)
From previous event:
at Serverless.run (/usr/local/lib/node_modules/serverless/lib/Serverless.js:144:8)
at serverless.init.then (/usr/local/lib/node_modules/serverless/bin/serverless:43:50)
Get Support --------------------------------------------
Docs: docs.serverless.com
Bugs: github.com/serverless/serverless/issues
Issues: forum.serverless.com
Your Environment Information -----------------------------
OS: darwin
Node Version: 6.11.1
Serverless Version: 1.32.0
I'd really love any assistance in fixing this issue as it appears to have persisted from 4.0.3 as mentioned in #161 and is severely impacting having an efficient workflow.
Thanks in advance.
The text was updated successfully, but these errors were encountered:
Hi @MrTeale, I had the exact same issue, and was using @AndrewFarley's version but since its pull-request has now been merged, you should just use the latest version of the plugin (4.2.2).
If the problem is indeed the same as mine, it should work like a charm!
I'm running into an issue regarding deploying a single function. I can deploy all of the functions using
sls deploy
but I have the issue ofCannot set property 'artifact' of undefined
whenever I attempt to deploy a single one. I have included my versions, a traceback of the issue and my serverless.yml file.My versions are:
OS: darwin (specifically macOS Version 10.14 Beta (18A293u)
Node Version: 6.11.1
Serverless Version: 1.32.0
Serverless-python-requirements: 4.1.0
Below is my traceback from attempting to run a single function deploy:
Serverless.yml file:
This is the current file structure.
I'd really love any assistance in fixing this issue as it appears to have persisted from 4.0.3 as mentioned in #161 and is severely impacting having an efficient workflow.
Thanks in advance.
The text was updated successfully, but these errors were encountered: