Giter Site home page Giter Site logo

Comments (16)

egoist avatar egoist commented on July 16, 2024 1

um... I'm going to exclude these two deps πŸ˜…

from poi.

egoist avatar egoist commented on July 16, 2024 1

Yep, my commit would fix this.

from poi.

throrin19 avatar throrin19 commented on July 16, 2024

I have the same error

from poi.

egoist avatar egoist commented on July 16, 2024

@throrin19 try installing vue and vue-template-compiler in your project

from poi.

throrin19 avatar throrin19 commented on July 16, 2024

I tried to install vue and vue-template-compiler in my project but I have the same error.

package.json :

{
  "name": "test-vue",
  "version": "0.1.0",
  "description": "",
  "main": "index.js",
  "scripts": {
    "dev": "vbuild --dev",
    "build": "vbuild"
  },
  "repository": {
    "type": "git",
    "url": "xxxxxxt"
  },
  "author": "",
  "license": "ISC",
  "dependencies": {
    "vue": "2.1.5",
    "vue-material": "0.4.1",
    "vue-touch-ripple": "2.2.2"
  },
  "devDependencies": {
    "node-sass": "4.0.0",
    "sass-loader": "4.0.2",
    "vbuild": "4.2.2",
    "vue-template-compiler": "2.1.5"
  }
}

vue.config.js :

module.exports = {
    title    : 'Goomeo Vue',
    resolve  : true,
    template : __dirname + '/docs/index.html',
    postcss  : {
        autoprefixer : {
            browsers : ['ie > 9', 'chrome > 42']
        }
    },
    entry : {
        client   : ['./docs/index.js']
    }
};

Error log :

ERROR in ./docs/components/App.vue
Module build failed: Error: 

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.

But I think it was a problem here, I have the vue-template-compiler installed with the 2.1.5 version and the error is for the 2.1.3. And Vue is installed with the 2.1.5 version and the error is for the 2.1.4 version

from poi.

egoist avatar egoist commented on July 16, 2024

It looks vue-loader can only resolve vue-template-compiler which is in vbuild's node_modules

If we exclude vue-template-compiler then we need to exclude vue-loader and vue-style-loader 😱

I think removing vue-template-compiler (in your project) and only install expected vue version (2.1.3) in your project could solve this for now.

from poi.

throrin19 avatar throrin19 commented on July 16, 2024

I found the problem : To works we should install the latest version of vue-loader directly in the project

from poi.

egoist avatar egoist commented on July 16, 2024

that's what I wanna prevent, no (or less) dev dependencies in your project

from poi.

throrin19 avatar throrin19 commented on July 16, 2024

But, If we should update vue version or other component (vue-router, vuex, ...), we will have to wait for you to publish an update.

from poi.

egoist avatar egoist commented on July 16, 2024

This is my solution to it cf007fb

from poi.

throrin19 avatar throrin19 commented on July 16, 2024

And I think it was a problem with Yarn.

Whith this package.json :

"dependencies": {
    "vue": "2.1.5",
    "vue-material": "0.4.1",
    "vue-touch-ripple": "2.2.2"
  },
  "devDependencies": {
    "babel-core": "^6.20.0",
    "babel-eslint": "7.1.1",
    "babel-plugin-transform-runtime": "^6.15.0",
    "babel-preset-es2015": "^6.18.0",
    "babel-preset-stage-2": "^6.18.0",
    "node-sass": "4.0.0",
    "sass-loader": "4.0.2",
    "vbuild": "4.2.2",
    "vue-loader": "10.0.2",
    "vue-template-compiler": "2.1.5"
  }

If I run the installation with npm install I have no problem, the compilation works fine.
If I run the installation with yarn I have the problem between [email protected] and [email protected].

After tests, the problem is the dependances resolutions if I install vbuild locally to the project. (I make that to simplify co-workers production envs). Any idea ?

from poi.

throrin19 avatar throrin19 commented on July 16, 2024

Ok :). I'll wait for the release of this fix

from poi.

egoist avatar egoist commented on July 16, 2024

Update to 4.3.0 should be good! let me know if there's any further issues

from poi.

throrin19 avatar throrin19 commented on July 16, 2024

It works fine thanks :)

from poi.

layanto avatar layanto commented on July 16, 2024

vbuild v4.3.1 onwards exclude vue-loader and vue-template-compiler. Are we expected to include them as devDependencies in the project now?

from poi.

egoist avatar egoist commented on July 16, 2024

@layanto yes

from poi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.