Skip to content

Vuex + vue-webpack-boilerplate (Uncaught TypeError: Vue is not a function) #68

@jbruni

Description

@jbruni

I am getting this error:

Uncaught TypeError: Vue is not a function

At this specific line: https://github.com/vuejs/vuex/blob/master/src/index.js#L32

I am using the webpack template.

I was able to reproduce the issue applying these minimal changes to the initial template:
https://github.com/jbruni/vuex-webpack-issue/commit/50af38cfbb94dc27a6d48082d0e7ecd6d0650366

Please, take a look... I believe the solution for this issue is very simple.

(I was not sure if I should open the issue at webpack template repo or here. It seems a Vuex issue to me, so I opened here. Thank you.)

Note: the same error happens both using npm run dev as well as building with npm run build and HTTP serving the static build.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions