electron-boilerplate-vue icon indicating copy to clipboard operation
electron-boilerplate-vue copied to clipboard

this._init is not a function

Open gj1118 opened this issue 8 years ago • 3 comments

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

gj1118 avatar Aug 21 '16 22:08 gj1118

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

thalesrca avatar Sep 04 '16 16:09 thalesrca

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

gj1118 avatar Sep 04 '16 19:09 gj1118

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

patleeman avatar Jan 17 '17 04:01 patleeman