Skip to content

[v2.2.0-beta.1] vue and vue-template-compiler 2.1.10 version mismatch #5000

Closed
@davidpicarra

Description

@davidpicarra

Vue.js version

2.2.0-beta.1

Reproduction Link

https://github.com/davidpicarra/vue-testing
This is a fresh webpack template from vue-cli with updated vue version to 2.2.0-beta.1

Steps to reproduce

Install dependencies
yarn

Run dev
yarn run dev

OR run build
yarn run build

What is Expected?

Dev command or build command should execute without errors.

What is actually happening?

Getting vue packages version mismatch for vue (2.2.0-beta.1) and vue-template-compiler (2.1.10)

→ yarn dev
yarn dev v0.20.0
$ node build/dev-server.js


 ERROR  Failed to compile with 1 errors                                                                                                                                                 10:53:49

 error  in ./src/App.vue

Module build failed: Error:

Vue packages version mismatch:

- vue@2.2.0-beta.1
- vue-template-compiler@2.1.10

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.

    at Object.<anonymous> (/Users/davidpicarra/Projects/vue-testing/node_modules/vue-template-compiler/index.js:8:9)
    at Module._compile (module.js:571:32)
    at Object.Module._extensions..js (module.js:580:10)
    at Module.load (module.js:488:32)
    at tryModuleLoad (module.js:447:12)
    at Function.Module._load (module.js:439:3)
    at Module.require (module.js:498:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (/Users/davidpicarra/Projects/vue-testing/node_modules/vue-loader/lib/parser.js:1:78)
    at Module._compile (module.js:571:32)
    at Object.Module._extensions..js (module.js:580:10)
    at Module.load (module.js:488:32)
    at tryModuleLoad (module.js:447:12)
    at Function.Module._load (module.js:439:3)
    at Module.require (module.js:498:17)
    at require (internal/module.js:20:19)

 @ ./src/main.js 3:0-24
 @ multi ./build/dev-client ./src/main.js

> Listening at http://localhost:8080

→ yarn build
yarn build v0.20.0
$ node build/build.js
⠴ building for production...
Starting to optimize CSS...
Hash: ef638e40f3651c0c8be5
Version: webpack 2.2.1
Time: 4201ms
                                         Asset       Size  Chunks             Chunk Names
      static/js/vendor.7b827ddfbe53181b815f.js    76.6 kB    0, 2  [emitted]  vendor
         static/js/app.c4f1d1df771a1e0ced38.js     1.9 kB    1, 2  [emitted]  app
    static/js/manifest.f7b89fe11af3d43ff0ea.js     1.5 kB       2  [emitted]  manifest
  static/js/vendor.7b827ddfbe53181b815f.js.map     618 kB    0, 2  [emitted]  vendor
     static/js/app.c4f1d1df771a1e0ced38.js.map    3.76 kB    1, 2  [emitted]  app
static/js/manifest.f7b89fe11af3d43ff0ea.js.map    14.1 kB       2  [emitted]  manifest
                                    index.html  369 bytes          [emitted]

ERROR in ./src/App.vue
Module build failed: Error:

Vue packages version mismatch:

- vue@2.2.0-beta.1
- vue-template-compiler@2.1.10

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.

    at Object.<anonymous> (/Users/davidpicarra/Projects/vue-testing/node_modules/vue-template-compiler/index.js:8:9)
    at Module._compile (module.js:571:32)
    at Object.Module._extensions..js (module.js:580:10)
    at Module.load (module.js:488:32)
    at tryModuleLoad (module.js:447:12)
    at Function.Module._load (module.js:439:3)
    at Module.require (module.js:498:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (/Users/davidpicarra/Projects/vue-testing/node_modules/vue-loader/lib/parser.js:1:78)
    at Module._compile (module.js:571:32)
    at Object.Module._extensions..js (module.js:580:10)
    at Module.load (module.js:488:32)
    at tryModuleLoad (module.js:447:12)
    at Function.Module._load (module.js:439:3)
    at Module.require (module.js:498:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (/Users/davidpicarra/Projects/vue-testing/node_modules/vue-loader/lib/loader.js:2:13)
    at Module._compile (module.js:571:32)
    at Object.Module._extensions..js (module.js:580:10)
    at Module.load (module.js:488:32)
    at tryModuleLoad (module.js:447:12)
    at Function.Module._load (module.js:439:3)
 @ ./src/main.js 3:0-24

  Build complete.

  Tip: built files are meant to be served over an HTTP server.
  Opening index.html over file:// won't work.

✨  Done in 6.66s.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions