From c2e653ce0bf9c5faa94790edf96952cb25b5a6a6 Mon Sep 17 00:00:00 2001 From: Thomas de Barochez Date: Thu, 15 Nov 2018 11:52:34 +0100 Subject: [PATCH] fix 'Cannot read property 'pop' of undefined' Disclaimer: I absolutely don't know what I am doing. --- src/index.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/index.js b/src/index.js index 49d458ff..d21a009c 100644 --- a/src/index.js +++ b/src/index.js @@ -461,6 +461,9 @@ class MiniCssExtractPlugin { } if (!success) { + if (!bestMatch) { + break; + } // no module found => there is a conflict // use list with fewest failed deps // and emit a warning