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

Typescript lerna monorepo - incorrect tsconfig file is used #1193

Closed
OlegRayskiy opened this issue Apr 14, 2022 · 2 comments
Closed

Typescript lerna monorepo - incorrect tsconfig file is used #1193

OlegRayskiy opened this issue Apr 14, 2022 · 2 comments
Labels
bug Something isn't working

Comments

@OlegRayskiy
Copy link

Summary

When using volar with lerna monorepo and opening vue files from different sub-packages/projects then it might start using tsconfig from a different sub-package/project.
If you haven't opened any vue files from specific sub-package/project after opening the project in VSCode then Volar will load up correct tsconfig for that sub-package/project. But once you start opening vue files from sub-packages/projects with already loaded tsconfig then the latest loaded tsconfig will be used.

Setup

Visual Studio code - v1.66.1
Vue Language Features (Volar) - v0.34.6
TypeScript Vue Plugin (Volar) - v0.34.6
Windows 10

Steps to reproduce

Repro repo - https://github.com/yottaltd/volar-monorepo

  1. Open the project in VSCode
  2. Enable plugins - Vue Language Features (Volar) and TypeScript Vue Plugin (Volar)
  3. In root dir do npm install and npm run init (this can probably be skipped just doing a lerna init)
  4. Close VSCode
  5. Reopen project in VSCode
  6. Open projects/ui/src/button/VButton.vue and in the bottom statusbar you will see that projects/ui/tsconfig.json is used once loading is done
    image
  7. Open projects/app/src/components/HelloWorld.vue and in the bottom statusbar you will see that projects/app/tsconfig.json is used once loading is done
    image
  8. Go back to VButton.vue file, statusbar will still be showing that projects/app/tsconfig.json is used
    image
@cmcnicholas
Copy link

seeing the same issue

@WORMSS
Copy link

WORMSS commented Jul 8, 2022

We are also seeing this problem. @johnsoncodehk have you had a chance to look at this?

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

4 participants