npm list --depth=0)node -v): v12.18.2npm -v): 6.14.6Unable to get vue to work. Throwing Uncaught TypeError: Vue.component is not a function
It's because we're using the esm build of Vue. The laravel/ui package needs an update to either import Vue as an ES6 module, or to add .default after the require.
For your issue, use this in resources/js/app.js:
window.Vue = require("vue").default;
Perhaps this can be mentioned in the upgrade guide
Most helpful comment
It's because we're using the esm build of Vue. The
laravel/uipackage needs an update to either import Vue as an ES6 module, or to add.defaultafter the require.For your issue, use this in
resources/js/app.js: