-
-
Notifications
You must be signed in to change notification settings - Fork 596
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
JsDoc import - Doesnt work #999
Labels
Milestone
Comments
Same here, just after the
Vetur server output:
|
This seems to be solved in TS 3.3, which you can get by:
See #682 for details. This issue will be completely gone after #1163. |
Closed
Confirming, after update it's working! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Info
Problem
In a Javascript project, I want to import JsDoc types defined in another file.
I'm using the following syntax:
@typedef {import('route_to_imported_file').TypeDefName} TypeDefName
It looks like Vetur isnt able to resolve the imported module. Intellisense doesnt work.
But it works if I do it from a common .js file.
Reproducible Case
https://github.com/gcaseres/veturpack-json_import_issue
Intellisense works well in
app.js
(common js file)But the same jsdoc import doesn't work in
components/Counter.vue
(vue file)The text was updated successfully, but these errors were encountered: