Today I switched to using Windows and decided to install Bun. However, when I tried running the script "bun dev", I encountered the following error message:
Error: Failed due to error: bunsh: No such file or directory.
Interestingly, when I run the same command in the terminal, it works fine. Here's the content of my package.json file:
{
"name": "app",
"version": "1.0.50",
"scripts": {
"dev": "bun --watch run src/index.ts"
},
"module": "src/index.js"
}
I've already attempted adding a "./" in front of the src/index.ts, as well as running the script with just index.ts in the src directory, but neither approach resolved the issue.