1

while integrating vue.js in laravel blade file facing this error

"Uncaught TypeError: Failed to resolve module specifier "vue". Relative references must start with either "/", "./", or "../"."

the code is

// Import Vue.js
    import Vue from 'vue';
    
    // Import your Vue components
    import ExampleComponent from './components/ExampleComponent.vue';
    
    // Register Vue components
    Vue.component('example-component', ExampleComponent);
    
    // Create Vue instance
    const app = new Vue({
        el: '#app',
    });
    
    vue is installed properly but still.
    
    npm install vue
    
    npm install -g @vue/cli
    
     npm install @vue/cli --save-dev

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.