Javascript sourcemap引用了错误的行,通常是源文件的最后一行

Javascript sourcemap引用了错误的行,通常是源文件的最后一行,javascript,typescript,source-maps,line-numbers,grunt-ts,Javascript,Typescript,Source Maps,Line Numbers,Grunt Ts,我正在使用grunt ts(v5.3.0beta.2,tsc v1.7.3)将我的typscript文件编译为带有inlineSource+inlineSourceMaps的javascript,以进行调试 我的grunt配置如下所示: grunt.initConfig({ ts: { project: { src: ["app/client/**/*.ts"], options: { removeComments: false,

我正在使用grunt ts(v5.3.0beta.2,tsc v1.7.3)将我的typscript文件编译为带有inlineSource+inlineSourceMaps的javascript,以进行调试

我的grunt配置如下所示:

grunt.initConfig({
  ts: {
    project: {
      src: ["app/client/**/*.ts"],
      options: {
        removeComments: false,
        failOnTypeErrors: true,
        inlineSourceMap: true,
        inlineSources: true
      },
      outDir: "tmp/built/app"
    }
  }
});
现在chrome选择了sourcemaps,但行号总是错误的,大多数时候它只是代码中的最后一行

在本例中,其参考行号为51,但应为行号21:

是否与grunt ts相关(是否可以通过tsc.exe直接重新编程)?它是否与您的代码相关(您能否提供一个迷你复制)?