How to get lsp-mode to find imported modules using tsconfig.json paths? #3023
Unanswered
timothystegall
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all!
Sorry if this has been asked before, but is there a way to get my TypeScript imports in lsp-mode to use the "paths" that I have set in the
compilerOptions
of my tsconfig.json file? For example, I have an import statement that says the following:import ModuleName from "@/path/to/module";
where the "@/" is one of the paths I specified incompilerOptions
. Instead of correctly using that path (like in VS Code) to find the appropriate file, the editor complains that there is an error with the import.Thank you for your help!
Beta Was this translation helpful? Give feedback.
All reactions