Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vue packages version mismatch #47

Open
dcolley opened this issue Jan 25, 2022 · 0 comments
Open

Vue packages version mismatch #47

dcolley opened this issue Jan 25, 2022 · 0 comments

Comments

@dcolley
Copy link

dcolley commented Jan 25, 2022

After clone, npm install and npm run serve I get:

 ERROR  Failed to compile with 5 errors                                                                                                10:35:52

 error  in ./src/assets/icon-preview.svg

Module build failed (from ./node_modules/vue-svg-loader/index.js):
Error: 

Vue packages version mismatch:

- [email protected] (/Users/derek/Sites/vue-pdfjs-demo/node_modules/vue/dist/vue.runtime.common.js)
- [email protected] (/Users/derek/Sites/vue-pdfjs-demo/node_modules/vue-template-compiler/package.json)

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/derek/Sites/vue-pdfjs-demo/node_modules/vue-template-compiler/index.js:10:9)
    at Module._compile (node:internal/modules/cjs/loader:1108:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1137:10)
    at Module.load (node:internal/modules/cjs/loader:973:32)
    at Function.Module._load (node:internal/modules/cjs/loader:813:14)
    at Module.require (node:internal/modules/cjs/loader:997:19)
    at require (node:internal/modules/cjs/helpers:92:18)
    at Object.<anonymous> (/Users/derek/Sites/vue-pdfjs-demo/node_modules/vue-svg-loader/index.js:3:18)
    at Module._compile (node:internal/modules/cjs/loader:1108:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1137:10)
    at Module.load (node:internal/modules/cjs/loader:973:32)
    at Function.Module._load (node:internal/modules/cjs/loader:813:14)
    at Module.require (node:internal/modules/cjs/loader:997:19)
    at require (node:internal/modules/cjs/helpers:92:18)
    at loadLoader (/Users/derek/Sites/vue-pdfjs-demo/node_modules/loader-runner/lib/loadLoader.js:18:17)
    at iteratePitchingLoaders (/Users/derek/Sites/vue-pdfjs-demo/node_modules/loader-runner/lib/LoaderRunner.js:169:2)

 @ ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/PDFViewer.vue?vue&type=script&lang=js& 52:0-53 72:17-28
 @ ./src/components/PDFViewer.vue?vue&type=script&lang=js&
 @ ./src/components/PDFViewer.vue
 @ ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/App.vue?vue&type=script&lang=js&
 @ ./src/App.vue?vue&type=script&lang=js&
 @ ./src/App.vue
 @ ./src/main.js
 @ multi (webpack)-dev-server/client?http://192.168.1.137:8080/sockjs-node ./node_modules/@vue/cli-service/node_modules/webpack/hot/dev-server.js ./src/main.js

I solved this with npm install --save [email protected] to match the version of vue-template-compiler

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

No branches or pull requests

1 participant