There are a few possible solutions to rectify the problem of an inaccurate path in the VSCode problem matcher while compiling using $tsc-watch:
Double-check the file paths: Ensure that the file paths specified in your VSCode tasks.json file match the correct file paths in your project directory.
Use relative paths: Instead of specifying absolute file paths, use relative paths in your tasks.json file. This ensures that the file paths are relative to the project directory, rather than the root directory.
Use the CWD (current working directory): Set the task's "cwd" property to the project directory. This ensures that the compiler runs in the project directory, which may resolve any filepath issues.
Use a different problem matcher: You can try using a different built-in problem matcher, or even create a custom problem matcher that more accurately matches your compiler's output.
Upgrade TypeScript: If you're using an older version of TypeScript, upgrading to the latest version may resolve any issues with inaccurate path matching.
Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss
Asked: 2022-05-17 11:00:00 +0000
Seen: 6 times
Last updated: Jan 23 '22
How can one ensure that sub-classes have uniform method parameters in TypeScript?
Can a TypeScript definition for icon names be provided in MaterialCommunityIcons for React Native?
How can TypeScript be used to save a file in an Excel add-in?
What is the Angular Type script NG Zorro event for radio buttons?
What is the process for implementing a Many to Many relationship using NestJs Sequlize and Mysql2?
What is the method for defining a Fixed length Array in TypeScript?
What difficulties are encountered in the installation of react-router-dom using typescript?