10 Replies
Please provide more info
- what terminal
- what shell
- what operating system
- what's your watch script
- do you mean actual crashing or does it just exit.
"watch:start": "tsc-watch --onSuccess "npm run start"",
I'm on windows 11
Please start by migrating to pwsh 7. Powershell 1 is super super deprecated https://learn.microsoft.com/en-us/powershell/scripting/install/installing-powershell-on-windows?view=powershell-7.4
https://bobbyhadz.com/blog/vscode-change-default-terminal#how-to-change-the-default-terminal-in-visual-studio-code
https://code.visualstudio.com/docs/terminal/profiles
Installing PowerShell on Windows - PowerShell
Information about installing PowerShell on Windows
Terminal Profiles in Visual Studio Code
Visual Studio Code's integrated terminal allows configuring various profiles to make launching various shells easier.
How to Change the default Terminal in Visual Studio Code | bobbyhadz
A step-by-step illustrated guide on how to change the default terminal in Visual Studio Code, on Windows, macOS and Linux.
Either way this will not be related to sapphire. This can only happen if you call
process.exit(5)
in your own code, in a library used, or similar. Sapphire doesn't execute such code.Solution
Terminal version was the problem thank you !
Kyra did some investigating in the background and it turns out that windows is misleading and despite the path saying v1.0 the actual version was 5.1. That said, that's still old deprecated powershell as opposed to modern v7.
Yeah I installed latest version
I never had this problem with next nest etc, I don't know why it appen with sapphire
No idea either but like I said not related to sapphire. I would assume that if you use tsc-watch in another project the problem exists there too
On a side note, I still wonder why Microsoft bundles PS 5.1, while it advertises PS 7, especially for non-business users 🤔