- Fork and clone the repo.
- Open the
Extensions
tab of VS Code. - Search for
@recommended
. - Make sure to install the
TypeScript + Webpack Problem Matchers
extension. - Run
ni
(orpnpm i
) in terminal. - Press F5 to start debugging.
Error messages:
- In
OUTPUT
panel of VS Code 👇.
// Error: the description can't be converted into a problem matcher
{
"base": "$ts-webpack-watch",
"background": {
"activeOnStart": true,
"beginsPattern": "Build start",
"endsPattern": "Build success"
}
}
- A popup saying like this 👇.
The task 'npm: dev' cannot be tracked. Make sure to have a problem matcher defined.
Solution:
Please make sure you follow the steps above and install the recommended extension. This extension provides the $ts-webpack-watch
problem matcher required in .vscode/tasks.json
.
After pressing F5, if there isn't a new terminal named Task
autostart in the TERMINAL
panel of VS Code, and recommended extension is installed correctly, it may because VS Code doesn't load your .zshrc
or other bash profiles correctly.
Error message:
- An error tip in the bottom right corner saying like this 👇.
The terminal process "/bin/zsh '-c', 'pnpm run dev'" terminated with exit code: 127.
Solutions:
- Run
pnpm run dev
(ornr dev
) manually. - Quit the VS Code in use and restart it from your terminal app by running the
code
command.