diff --git a/extensions/roc-package-webpack-dev/src/actions/build.js b/extensions/roc-package-webpack-dev/src/actions/build.js
index <HASH>..<HASH> 100644
--- a/extensions/roc-package-webpack-dev/src/actions/build.js
+++ b/extensions/roc-package-webpack-dev/src/actions/build.js
@@ -108,7 +108,7 @@ export default ({ context: { verbose, config: { settings } } }) => (targets) => 
     const validTargets = targets.filter((target) => webpackTargets.some((webpackTarget) => webpackTarget === target));
 
     if (validTargets.length === 0) {
-        return Promise.resolve();
+        return () => Promise.resolve();
     }
 
     log.small.log(`Starting the builder using "${settings.build.mode}" as the mode.\n`);
Fixed a problem when no targets where valid