Open Shadow-XT opened 2 years ago
Same problem
Luckily, I solve this problem! First, a special thanks to "intellij-support.jetbrains.com" engineer's support! Here is part of my request communicated with the engineer. And this link (TypeScript programming issue with WebStorm) towards my request website page.
We might as well go over what happened. I told the engineer what npm packages I have already installed. What I have done to my WebStorm IDE. Finally, the engineer found out that this question you asked caused by the plugin - Run Configuration for TypeScript! Those his exact words are shown in the snapshot below.
I put the related document link here. Hope it works for you. ws_ts_run_debug_server_side_ts_node
After reading the document carefully, I reconfigure my WS Run/Debug Configuration dialog. It works! Here is my configurations.
And here is my code and running result.
And the end, let's make a joke that we are victims of the plugin indeed. XD~~
@Shadow-XT Does my solution works to you?
@SteinwaySons The method you mentioned does work, and running ts can be achieved through configuration. If it's not a bug in this plugin, I still think this plugin is more convenient to use, because with this plugin, a single ts file can be run directly by right-clicking without configuration.
@SteinwaySons The method you mentioned does work, and running ts can be achieved through configuration. If it's not a bug in this plugin, I still think this plugin is more convenient to use, because with this plugin, a single ts file can be run directly by right-clicking without configuration.
Yeah! I couldn't agree more. Hope someone one official could take this issue seriously!
When I run the TS file, the terminal will display redundant content such as "] 0; D: RunEnv NodeJS node. exe", which outputs the location and redundant characters of my node executable file. Although this has no impact on the running result of the program, the redundant content will still appear ugly on the terminal, affecting my observation of the results. The specific results are shown in the figure below.The red box is the redundant output content.