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

Cannot resolve vue file in ts file when extending tsconfig.json #62

Closed
tienpv222 opened this issue Feb 15, 2021 · 5 comments
Closed

Cannot resolve vue file in ts file when extending tsconfig.json #62

tienpv222 opened this issue Feb 15, 2021 · 5 comments
Labels
bug Something isn't working

Comments

@tienpv222
Copy link

Reproduce:

  • Extend any config in tsconfig.json
  • Reload vscode if error doesn't appear

image

Repo:

https://github.com/pynnl/volar-extend-tsconfig

Use case:

I'd like to use google style in my project.

P/S: Thank you for the great extension.

@johnsoncodehk
Copy link
Member

johnsoncodehk commented Feb 15, 2021

@pynnl thanks to report! please try to add "rootDir": "." to tsconfig, I will take a look if it can be improved or not.

@tienpv222
Copy link
Author

tienpv222 commented Feb 15, 2021

@johnsoncodehk "rootDir": "." doesn't work for me. I've tried several options but it seems that only removing extends worked.

@johnsoncodehk
Copy link
Member

I think I parsed tsconfig incorrectly, I'm checking.

@johnsoncodehk johnsoncodehk added the bug Something isn't working label Feb 15, 2021
@johnsoncodehk
Copy link
Member

should be fix in 0.21.5, please let me know if working or not.

@tienpv222
Copy link
Author

It's working now. Thank you!

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

2 participants