0👍
Actually, the problem came when they deprecated gulp-util with version 3.0.8 and announced a new version 4.0.0 which is still in alpha stage.So, the move wasn’t calculated well and it lead to a much bigger problem because of many plugins dependent on gulp-util-3.0.8.
So now to solve the issue, just change your app.js to below mentioned code
import Vue from 'vue';
import ExampleComponent from './components/ExampleComponent.vue';
require('./bootstrap');
window.Vue = Vue;
Vue.component('example-component', ExampleComponent);
const app = new Vue({
el: '#app'
});
It will solve your problem for npm install
- [Vuejs]-How do I create a component instance programmatically in vue 3?
- [Vuejs]-How to set data to other Component in Vuejs
Source:stackexchange.com