We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Duplicate props don't show errors in the correct file, with correct line numbers.
Breaking test is to modify class-child.vue:
class-child.vue
<script> import { Vue, Component, Prop, PropSync, Model } from 'vue-property-decorator' @Component({ props: { foo: Number } }) export default class Child extends Vue { @Prop(Number) bar @Prop({ default: 'car' }) car @Prop({ required: false }) dar @Prop({ required: true }) ear @Prop() ear @Prop([String, Number]) far @PropSync('name', { type: String }) syncedName @Model('change', { required: true }) checked } </script>
By adding @Prop() ear we now have duplicated the ear prop.
@Prop() ear
ear
Expected result is to see both lines defining the ear prop to be errored, and for the class-child.vue file to be the source of the error.
Actual result is to see
Duplicate identifier 'ear'.Vetur(2300) Duplicate identifier 'ear'.Vetur(2300)
in parent.vue with 0,0 as line number, character.
parent.vue
The text was updated successfully, but these errors were encountered:
If you can provide a project, we can study more easily.
Sorry, something went wrong.
https://github.com/andrewisaburden/veturpack/tree/2459-reproduction reproduction project.
No branches or pull requests
Info
Problem
Duplicate props don't show errors in the correct file, with correct line numbers.
Reproducible Case
Breaking test is to modify
class-child.vue
:By adding
@Prop() ear
we now have duplicated theear
prop.Expected result is to see both lines defining the
ear
prop to be errored, and for theclass-child.vue
file to be the source of the error.Actual result is to see
in
parent.vue
with 0,0 as line number, character.The text was updated successfully, but these errors were encountered: