Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Using the "Build and Run" command on a file with TypeScript target doesn't run the program #64

Closed
billy-bao opened this issue Jul 1, 2022 · 1 comment

Comments

@billy-bao
Copy link

billy-bao commented Jul 1, 2022

I am on Mac OS Monterey 12.4, using Bash.
When choosing the "Build and Run" command using the VS Code extension on a TypeScript target, the program doesn't run, but rather starts the node interactive environment. This is the output:

cd /Users/billybao/lf/test
bash --login -c node src-gen/HelloWorld/dist/HelloWorld.js

The default interactive shell is now zsh.
To update your account to use zsh, please run `chsh -s /bin/zsh`.
For more details, please visit https://support.apple.com/kb/HT208050.
(base) BillydeMacBook-Pro:test billybao$ cd /Users/billybao/lf/test
(base) BillydeMacBook-Pro:test billybao$ bash --login -c node src-gen/HelloWorld/dist/HelloWorld.js
Welcome to Node.js v18.4.0.
Type ".help" for more information.
> 

Suggested fix:
bash --login -c node src-gen/HelloWorld/dist/HelloWorld.js ->
bash --login -c "node src-gen/HelloWorld/dist/HelloWorld.js"

@petervdonovan
Copy link
Contributor

Closed by #1265.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants