Skip to content

Make vue-template-compiler a peerDependency  #35

@abrenneke

Description

@abrenneke

Requiring require-extension-hooks-vue errors if the vue-template-compiler version doesn't match the imported version of Vue.

For example, as this currently depends on "^2.5.17", and I upgraded to Vue 2.6.9, I get the following error:

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.

    at Object.<anonymous> (/code/work/cms2/node_modules/require-extension-hooks-vue/node_modules/vue-template-compiler/index.js:8:9)

I think making vue-template-compiler a peerDependency solves the issue, but maybe there's a better way.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions