- 
          
- 
                Notifications
    You must be signed in to change notification settings 
- Fork 595
Closed
Labels
Description
Info
- Platform: Windows 10 Enterprise ((1803) 64-bit
- Vetur version: 0.24.0
- VS Code version: 1.43.2
Problem
Vetur reports the error 2551 at a position where no error is. Also this depends on the indentation of the line. The error says
Property 'houldError' does not exist on type 'CombinedVueInstance<{ tasks: any[]; } & { shouldError(task: any): void; errorsToo(id: any): void; noError(): void; } & Record<never, any> & Vue, object, object, object, Record<never, any>>'. Did you mean 'shouldError'? Vetur(2551)
Reproducible Case
I've created a repo that reproduces this error: https://github.com/schl3ck/vetur-error-on-different-indent
The steps are outlined in the readme of the linked repo, but are the same as these:
- Clone the repo
- Run npm i
- Open the folder with VSCode and open the file src/Errors.vue
- Wait until everything is loaded
- Observe the error Veture(2551) on line 8 & 9 but not on line 10
- Indent line 8 or 9 once => error still there
- Indent same line again => error vanishes
- Remove (...)from the function call on the other line => error vanishes
- Add ()to the function call on line 10 => error appears

