Skip to content
This repository was archived by the owner on Dec 26, 2018. It is now read-only.

vueify breaks when upgrading vue to 2.5.8 #211

Closed
brian-lamb-software-engineer opened this issue Nov 21, 2017 · 1 comment
Closed

vueify breaks when upgrading vue to 2.5.8 #211

brian-lamb-software-engineer opened this issue Nov 21, 2017 · 1 comment

Comments

@brian-lamb-software-engineer
Copy link

brian-lamb-software-engineer commented Nov 21, 2017

updating to
"vue": "^2.5.8"
breaks vueify.
I have tried to remove and re add vueify, do i need to delete all vue* dirs maybe in node_modules and try again, or possibly forsakenly remove the whole node_modules again..? Or does "Breakage" mean don't install Vue 2.5.8 until .. what?

Running gulp to compile i get this.

Vue packages version mismatch:

- [email protected]
- [email protected]

This may cause things to work incorrectly. Make sure to use the same version for both.
If you are using vue-loader@>=10.0, simply update vue-template-compiler.
If you are using vue-loader@<10.0 or vueify, re-installing vue-loader/vueify should bump vue-template-compiler to the latest.

I dont use vue-template-compiler.

My gulpfile (wasnt easy to come by, any suggestions welcome here)

var browserify = require('browserify');

module.exports = function (gulp, plugins, config) {
  return function(){
    gulp.task('vue-build', function () {
      browserify({entries: [
        config.paths.assetDir + 'js/app.js'
      ]}) // path to your entry file here
      // .transform(plugins.vueify) //moved to package.json
      .plugin('vueify/plugins/extract-css', { out: config.paths.publicDir + 'css/vue-bundle.css' }) // path to where you want your css
      // .transform(plugins.babelify, {"presets": ["es2015"]}) //moved to package.json
      .external('vue') // remove vue from the bundle, if you omit this line whole vue will be bundled with your code
      .bundle()
      .pipe(plugins.source('app.js'))
      .pipe(gulp.dest(config.paths.publicDir + 'js'));
    })
  }
};
@brian-lamb-software-engineer
Copy link
Author

Solved:
Ok, reporting back, deleting out node_modules/vue* then running npm install solved this issue. I wouldnt have tried that quick, except that I almost tried downgrade to 2.5.7 when i realized i had to go in there anyway to remove the vue directory anyway, so i thought I would just try it first.

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

No branches or pull requests

1 participant