Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

this._init is not a function #41

Open
gj1118 opened this issue Aug 21, 2016 · 3 comments
Open

this._init is not a function #41

gj1118 opened this issue Aug 21, 2016 · 3 comments

Comments

@gj1118
Copy link

gj1118 commented Aug 21, 2016

Hi,
I keep getting this error . Can you please help me out with this?

        ERROR in ./app/App.vue
        Module build failed: TypeError: this._init is not a function
            at Object.Vue (D:\sandbox\AlertManager\vuejs-boilerplate\electron-boilerplate-vue\app\node_modules\vue\dist\vue.common.js:9510:8)
         @ ./app/main.js 7:11-27

image

Node Version : 4.4.5
NPM Version : 3.9.3

Thanks

@thalesrodolfo
Copy link

After run 'npm update' I started to get this problem too. Do you managed to fix it?

@gj1118
Copy link
Author

gj1118 commented Sep 4, 2016

@thalesrodolfo i did remove the node modules directory and then installed the packages again. I keep getting this error randomly.

@patleeman
Copy link

patleeman commented Jan 17, 2017

For anybody coming by with this issue.

You need to change the webpack loader from:

loaders: [
      {
        test: /\.vue$/,
        loader: 'vue'
      },
...

to

loaders: [
      {
        test: /\.vue$/,
        loader: 'vue-loader'
      },
...

in /build/webpack.base.conf.js

From here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants