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

eslint ts error warning never refresh, even though i has fixed the problem, i need to run volar: restart vue server to remove the error tip. #1163

Closed
WormGirl opened this issue Apr 11, 2022 · 6 comments
Labels
bug Something isn't working

Comments

@WormGirl
Copy link

WormGirl commented Apr 11, 2022

volar: 0.34.3 , i used the take over mode.
#1007 #1001 this error occured again.

@WormGirl WormGirl changed the title eslint ts error warning never refresh, even though i has fixed the problem, i need to volar: restart vue server to remove the error tip. eslint ts error warning never refresh, even though i has fixed the problem, i need to run volar: restart vue server to remove the error tip. Apr 11, 2022
@johnsoncodehk
Copy link
Member

I can't reproduce this problem, please provide repro case.

@WormGirl
Copy link
Author

WormGirl commented Apr 12, 2022

Maybe caused by TypeScript Vue Plugin (Volar), now i disabled it. it seems normal.

@leindfraust
Copy link

Had this error too, pops up randomly when switching between Vue projects. As I have observed, it only affects Vue projects with Typescript. No errors when used in Javascript.

@WormGirl
Copy link
Author

WormGirl commented Apr 14, 2022

I still have this problem, but it happens when TS types are passed across files. For example, for component props, the parent component passes data to the child component. If the typescript type is wrong, vscode will report an error. Even if I deal with this error later, the error prompt of vscode will not disappear, and the prompt is still the previous error.

@johnsoncodehk
Copy link
Member

johnsoncodehk commented Apr 20, 2022

Will be helpful if you can describe steps that how can it reproduce in https://github.com/johnsoncodehk/volar-starter.

@WormGirl
Copy link
Author

@johnsoncodehk clone this demo https://github.com/WormGirl/volar-eslint-takeOverMode-cache-bug

  1. enable take over mode
  2. open src/views/HomeView.vue, will find an ts error like below
    image
  3. open src/components/HelloWorld.vue fixed this error by change msg type to string.
  4. return src/views/HomeView.vue. this error still show.

@johnsoncodehk johnsoncodehk added bug Something isn't working and removed need info labels Apr 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants