You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is where it goes wrong. Because the dependencies list is empty, it fails to resolve the imported module.
I think think it might be possible to fix this without making changes to swc.
If you add a regular import at the top of a file, that fixes the jsdoc import:
The text was updated successfully, but these errors were encountered:
kitsonk
changed the title
https://github.com/denoland/deno/blob/1eb78731eb57b1d0eb7c0ece97b2018c1724989e/cli/lsp/documents.rs#L1025-L1059
graph does not analyze JSDoc imports
Dec 20, 2021
deno_graph does not currently analyze JSDoc imports, which means that modules imported in JSDoc are not included in the dependency graph, which means they are not available to tsc during type checking.
https://github.com/denoland/deno/blob/1eb78731eb57b1d0eb7c0ece97b2018c1724989e/cli/lsp/documents.rs#L1025-L1059
This is where it goes wrong. Because the dependencies list is empty, it fails to resolve the imported module.
I think think it might be possible to fix this without making changes to swc.
If you add a regular import at the top of a file, that fixes the jsdoc import:
Originally posted by @jespertheend in https://github.com/denoland/vscode_deno/issues/588#issuecomment-998330173
The text was updated successfully, but these errors were encountered: