From cd496638ed995b347d7c15692f0f4488c575c7a2 Mon Sep 17 00:00:00 2001 From: Brandon Surowiec Date: Wed, 8 Jun 2022 13:03:19 -0400 Subject: [PATCH] Fix Webpack 'vue-loader' Module not found error Version 15.9.7 has a bug where Webpack cannot find the module: https://github.com/vuejs/vue-loader/issues/1859 I have run into this MODULE_NOT_FOUND bug just about every time that I upgrade one of my older projects to Laravel Mix 6. Version 15.9.8 fixes that: https://github.com/vuejs/vue-loader/releases?q=v15.9.8&expanded=true --- src/components/Vue.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Vue.js b/src/components/Vue.js index 9b63c382c..1ad7b06c6 100644 --- a/src/components/Vue.js +++ b/src/components/Vue.js @@ -64,7 +64,7 @@ module.exports = class Vue extends Component { let dependencies = [ this.version === 2 ? 'vue-template-compiler' : '@vue/compiler-sfc', - this.version === 2 ? 'vue-loader@^15.9.7' : 'vue-loader@^16.2.0' + this.version === 2 ? 'vue-loader@^15.9.8' : 'vue-loader@^16.2.0' ]; if (this.options.extractStyles && this.options.globalStyles) {