diff --git a/lib/classes/PluginManager.js b/lib/classes/PluginManager.js index af8ec300b..2adb9ef99 100644 --- a/lib/classes/PluginManager.js +++ b/lib/classes/PluginManager.js @@ -73,7 +73,7 @@ class PluginManager { } loadServicePlugins(servicePlugs) { - const servicePlugins = (typeof servicePlugs !== 'undefined' ? servicePlugs : []); + const servicePlugins = (servicePlugs && typeof servicePlugs !== 'undefined' ? servicePlugs : []); // we want to load plugins installed locally in the service if (this.serverless && this.serverless.config && this.serverless.config.servicePath) {