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
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 in compilerOptions. 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.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
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