After doing all the required upgrading to Vue 3, I can't get away from the very unhelpful error message during webpack build of:
Module not found: Error: Can't resolve 'vue'
I updated to the latest Vue version (3.0.4) in package.json
I updated all the other packages including
vue-loader (16.1.1), and going fromvue-template-compileto@vue/compiler-sfc (3.0.4)I changed the main.js initialization code to
import { createApp } from 'vue';andcreateApp( App ).mount( '#app' );I have removed node_modules and re-run npm install, so 'vue' is definately there.
I even dumbed down all the Vue components to literally just have nothing but html in them.
Why is it still saying it cannnot find 'vue'. Most google searches result in suggestions regarding laravel, but I dont use that.