Skip to content

Wiki tutorial fix for Vue ReferenceError #9

Closed
@ZviBaratz

Description

@ZviBaratz

Hi,

Thank you for the detailed tutorial!
I wanted to PR a tiny fix but it seems it's a bit complicated for Wiki pages, so I just wanted to let you know I got a ReferenceError for Vue that was fixed by adding window.Vue = Vue; in index.js.

So index.js now looks like this:

window.$ = window.jQuery = require('jquery');
require('bootstrap-sass');

import Vue from 'vue';
import Demo from "./components/Demo.vue";

window.Vue = Vue;
const app = new Vue({
    el: '#app',
    components: {
        Demo
    }
});

Hope this helps and thank you again,
Zvi

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions