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

Auto import module fails in .vue file (and .ts file in TakeOver mode) #2313

Closed
jbmaisner opened this issue Jan 13, 2023 · 2 comments
Closed
Labels
duplicate This issue or pull request already exists

Comments

@jbmaisner
Copy link

Hi,

This issue is related to this one in the VSCode repo :
Vue not auto importing modules. False expression: Some exportInfo should match the specified moduleSymbol

After some tests I think this could be related to Volar.

The error below occurs when trying to import a module of Vue in .vue file.
An example when I try to use reactive.

CleanShot 2023-01-13 at 11 34 57@2x

We can see the error in the intellisense description, which breaks auto import.

The reason I think it's related to Volar is that the same error occurs in a .ts file, but only when TakeOver mode is enabled.
Otherwise everything works fine in .ts files.

This issues occurs on :

  • MacOS : Ventura 13.1 (apparently on Windows too)
  • VSCode : 1.74.3
  • Volar : 1.0.24
  • Typescript : 4.9.4
  • Vue : 3.2.45
@jbmaisner jbmaisner changed the title Auto import module fails in .vue file and .ts file in TakeOver mode Auto import module fails in .vue file (and .ts file in TakeOver mode) Jan 13, 2023
@jbmaisner
Copy link
Author

As seen in #2190 , downgrading Typescript to 4.8.4 apparently solve this issue.

@johnsoncodehk
Copy link
Member

Duplicate of #2190

@johnsoncodehk johnsoncodehk marked this as a duplicate of #2190 Feb 11, 2023
@johnsoncodehk johnsoncodehk closed this as not planned Won't fix, can't repro, duplicate, stale Feb 11, 2023
@johnsoncodehk johnsoncodehk added the duplicate This issue or pull request already exists label Feb 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants