Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Amalmax's avatar

Uncaught TypeError: Vue is undefined error in Laravel project

developing vue 3 + Laravel project. but when try to load vue in welcome.blade.php it is not showing content. Then element console uncounted following error message as well ** Uncaught TypeError: Vue is undefined ** My app.js file is like this

require('./bootstrap');
window.Vue = require('vue').default;
Vue.component('moulapp', require('./components/moulapp.vue').dafault)
const app = new Vue({
    el:'#app',
})

what is the problem and how could I fix this matter?

need some solutions

0 likes
1 reply

Please or to participate in this conversation.