-
-
Notifications
You must be signed in to change notification settings - Fork 545
Closed
cspotcode/node-source-map-support
#23Milestone
Description
Search Terms
source map
10.2.0
Expected Behavior
Log should point to example.ts:3
Actual Behavior
Log points to example.ts:4
Steps to reproduce the problem
- Clone the repro repository
- Run
bash run.sh
Minimal reproduction
Specifications
- ts-node version: 10.2.0+
- node version: 14.17.0 / 16.6.1
- TypeScript version: 4.3.5 / 4.4.2
- tsconfig.json, if you're using one:
{
"compilerOptions": {
"target": "ESNEXT",
"module": "CommonJS",
"strict": true,
"moduleResolution": "node",
"esModuleInterop": true,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true
}
}- Operating system and version: Archlinux
Additional context
I see that on https://github.com/TypeStrong/ts-node/releases/tag/v10.2.0 there was some changes to source map, probably causing this issue.
EDIT:
After reading #1440 & #1438, I see that this is issue is present due to using 2 different source-map-support libraries, however in this case it's a dependency (tslog) using the original source-map-support, how should users proceed in this case? I've confirmed that if I change the import in the dependency to require("@cspotcode/source-map-support"), it points to the correct line number, but that's not a practical solution.
Metadata
Metadata
Assignees
Labels
No labels