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

Types exported from a Vue file in a monorepo package are not found in the importing package with the TypeScript Vue Plugin (Non-takeover mode) #3419

Closed
segevfiner opened this issue Jul 18, 2023 · 2 comments
Labels
bug Something isn't working good reproduction ✨ This issue provides a good reproduction, we will be able to investigate it first

Comments

@segevfiner
Copy link
Contributor

Steps to Reproduce

  1. Have VS Code with the "Vue Langauge Features (Volar)" & "TypeScript Vue Plugin (Volar)" extensions installed
  2. Clone https://github.com/segevfiner/vue-typescript-plugin-issue
  3. pnpm i
  4. pnpm -C packages/a build
  5. code .
  6. Open packages/b/composables/foo.ts.

There will be no real type for Foo in non-takeover mode using the TypeScript Vue Plugin, and the incorrect assignment will not be flagged in VS Code. If you run pnpm type-check in packages/b it will flag the assignment. This doesn't happen in take over mode. It seems like something isn't working in this case in the TypeScript server plugin. Weird, cause I remember this used to work.

Using VS Code 1.80.1
Volar 1.8.5
Happens with either VS Code's builtin TypeScript 5.1.6 or with the workspace TypeScript 5.0.4

@johnsoncodehk johnsoncodehk added pending triage good reproduction ✨ This issue provides a good reproduction, we will be able to investigate it first bug Something isn't working and removed pending triage labels Jul 20, 2023
@johnsoncodehk
Copy link
Member

Thanks for the report!

@Suniron
Copy link

Suniron commented Jul 25, 2023

This error seems to be like mine #3415

But it's not solved for me :(

I've created a reproduction repo here https://github.com/Suniron/nuxt3-turborepo-template

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good reproduction ✨ This issue provides a good reproduction, we will be able to investigate it first
Projects
None yet
Development

No branches or pull requests

3 participants