bradstewart / electron-boilerplate-vue

Boilerplate application for Electron runtime
725 stars 94 forks source link

this._init is not a function #41

Open gj1118 opened 8 years ago

gj1118 commented 8 years ago

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

thalesrca commented 8 years ago

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

gj1118 commented 8 years ago

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

patleeman commented 7 years ago

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