-
-
Notifications
You must be signed in to change notification settings - Fork 426
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
Go to definition in a Vue SFC file on the import of another Vue component in a library with declaration maps doesn't work #3491
Comments
@segevfiner I think this is expected - when importing from If you want to goto |
Ah - wait, declaration maps? |
I am having this issue as well, declaration maps only worked in ts file but not in vue file. |
He was talking about this https://www.typescriptlang.org/tsconfig#declarationMap We want to go to source code rather than .d.ts. |
I noticed that it is caused by an incorrect source file name with It's still reproducible with
And with
|
Close because it works well with the latest version. |
pnpm i
pnpm -r build
HelloWorld
in the import on line 3 and go to definition, it goes to the built .d.ts file of HelloWorld.vue.HelloWorld
in the import on line 8 and go to definition, it goes to the HelloWorld.vue source file.This seems to happen in both non-takeover and takeover mode.
Related to the previously closed #1344
The text was updated successfully, but these errors were encountered: