New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot destructure property 'log' of 'undefined' #165
Comments
@siolfyr Thanks for your bug report! I am not sure what needs to change to get this to work with serverless 2, however, I do know the while going to serverless 3 the logging mechanism changed. You can either
Sorry if this is not the answer you were looking for. EDIT: If someone else is having the same issue please go ahead and add 👍 on the original issue above |
🎉 This issue has been resolved in version 4.0.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Describe the bug
TypeError: Cannot destructure property 'log' of 'undefined' as it is undefined.
at new Client (/Users/username/home/company/td-scheduler/node_modules/serverless-finch/lib/plugin.js:14:41)
at PluginManager.addPlugin (/Users/username/.nvm/versions/node/v14.19.0/lib/node_modules/serverless/lib/classes/PluginManager.js:92:28)
at /Users/username/.nvm/versions/node/v14.19.0/lib/node_modules/serverless/lib/classes/PluginManager.js:141:33
at Array.forEach ()
at PluginManager.loadAllPlugins (/Users/username/.nvm/versions/node/v14.19.0/lib/node_modules/serverless/lib/classes/PluginManager.js:141:8)
at Serverless.init (/Users/username/.nvm/versions/node/v14.19.0/lib/node_modules/serverless/lib/Serverless.js:213:30)
at async /Users/username/.nvm/versions/node/v14.19.0/lib/node_modules/serverless/scripts/serverless.js:589:7
Get Support --------------------------------------------
Docs: docs.serverless.com
Bugs: github.com/serverless/serverless/issues
Issues: forum.serverless.com
Your Environment Information ---------------------------
Operating System: darwin
Node Version: 14.19.0
Framework Version: 2.72.3
Plugin Version: 5.5.4
SDK Version: 4.3.2
Components Version: 3.18.2
Error makes sense to me, line 92 of PluginManager is this:
const pluginInstance = new Plugin(this.serverless, this.cliOptions);
// No third parameterTo Reproduce
Run sls client deploy
Expected behavior
Not crash
Configuration
Operating system (please complete the following information):
The text was updated successfully, but these errors were encountered: