Skip to content

Error-stacktrace are wrong when using ts-node + source-map-support #1440

@stavalfi

Description

@stavalfi

When I downgrade to ts-node 9.1.1 all works great (or run my code without ts-node I get the correct javascript stacktraces).

Expected Behavior

correct error-stacktraces

Actual Behavior

Steps to reproduce the problem

Minimal reproduction

I can't share my code because it's private.
I couldn't reproduce this bug easily in a minimal example.

Specifications

ts-node v10.2.1
node v14.15.4
compiler v4.1.3
  • ts-node version:
  • node version:
  • TypeScript version:
  • tsconfig.json, if you're using one:
{
  "compilerOptions": {
    "noImplicitAny": false,
    "experimentalDecorators": true,
    "emitDecoratorMetadata": true,
    "declaration": true,
    "allowSyntheticDefaultImports": true,
    "sourceMap": true,
    "strict": true,
    "module": "commonjs",
    "moduleResolution": "node",
    "target": "ES2019",
    "lib": ["esnext", "DOM", "DOM.Iterable"],
    "preserveSymlinks": true,
    "esModuleInterop": true,
    "skipLibCheck": true,
    "composite": true,
    "baseUrl": "packages",
    "paths": {
      "@singer/common": ["common/src/index.ts"],
      "@singer/test-infra": ["tests-infra/src/index.ts"]
    },
    "resolveJsonModule": true,
    "jsx": "react"
  }
}
  • Operating system and version: macos big sur 11.5.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions