From d83ad017705c8bd1c4c7e7ea28b1730765caf6b4 Mon Sep 17 00:00:00 2001 From: Pascal Precht Date: Thu, 9 Apr 2020 17:17:19 +0200 Subject: [PATCH] fix(core/utils): shortcut `embarkConfig.plugins` in case it doesn't exist --- packages/core/utils/src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/utils/src/index.ts b/packages/core/utils/src/index.ts index 082590ee2b..76705a6be7 100644 --- a/packages/core/utils/src/index.ts +++ b/packages/core/utils/src/index.ts @@ -328,7 +328,7 @@ export function warnIfPackageNotDefinedLocally(packageName, warnFunc, embarkConf return warnFunc("== WARNING: it seems " + packageName + " is not defined in your dapp's package.json dependencies; In future versions of embark this package should be a local dependency and configured as a plugin"); } - if (!embarkConfig.plugins[packageName]) { + if (!embarkConfig.plugins || !embarkConfig.plugins[packageName]) { return warnFunc( __("== WARNING: it seems %s is not defined in your Dapp's embark.json plugins;\nIn future versions of Embark, this package should be a local dependency and configured as a plugin", packageName) );