IntelliJ:为什么Node.js启动器在调试模式下崩溃?

时间:2019-04-01 11:05:09

标签: node.js typescript debugging intellij-idea webstorm

我编写了一个非常简单的Typescript文件,并将其命名为“ app2.ts”。

我在IntelliJ中创建了以下启动器:

enter image description here

运行此启动器时,一切正常。但是,当我在调试模式下运行它时,在控制台中出现以下错误:

(函数(导出,需求,模块,__ filename,__ dirname){

  

SyntaxError:无效或意外的令牌       使用新脚本(vm.js:80:7)       在createScript(vm.js:274:10)       在Object.runInThisContext(vm.js:326:10)       在Module._compile(内部/模块/cjs/loader.js:664:28)       在Object.Module._extensions..js(内部/模块/cjs/loader.js:712:10)       在Module.load(internal / modules / cjs / loader.js:600:32)       在tryModuleLoad(内部/模块/cjs/loader.js:539:12)       在Function.Module._load(内部/模块/cjs/loader.js:531:3)       在Module.require(internal / modules / cjs / loader.js:637:17)       在Module._preloadModules(internal / modules / cjs / loader.js:824:12)

您知道问题出在哪里,为什么配置在运行模式下起作用,而在调试模式下却不起作用?

0 个答案:

没有答案
相关问题