Skip to content

Improve error message for mismatched vue, vue-template-compiler #209

@fastfedora

Description

@fastfedora

When the version of the vue-template-compiler does not match the version of vue, the following error is thrown (code):

node_modules/fork-ts-checker-webpack-plugin/lib/VueProgram.js:183
            throw new Error('When you use `vue` option, make sure to install `vue-template-compiler`.');
            ^
Error: When you use `vue` option, make sure to install `vue-template-compiler`.

In this case vue-template-compiler is already installed; it's just that there is a version number mismatch. It would be helpful if the following text was added:

If vue-template-compiler is already installed as a dependency, ensure it has the same version number as the vue dependency.

Alternatively, printing the underlying error thrown from vue-template-compiler would help make the root cause of the error clearer.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions