node-source-map-support icon indicating copy to clipboard operation
node-source-map-support copied to clipboard

Adds source map support to node.js (for stack traces)

Results 104 node-source-map-support issues
Sort by recently updated
recently updated
newest added

I'm trying to use this module in the browser in combination with bluebird and webpack. I'm loading it via `import 'source-map-support/register'` and all builds fine but when I run the...

Stack trace : ``` TypeError: Column must be greater than or equal to 0, got -62 at SourceMapConsumer_findMapping [as _findMapping] (D:\REPOS\alm\node_modules\source-map-support\node_modules\source-map\lib\source-map\source-map-consumer.js:281:15) at SourceMapConsumer_originalPositionFor [as originalPositionFor] (D:\REPOS\alm\node_modules\source-map-support\node_modules\source-map\lib\source-map\source-map-consumer.js:310:26) at mapSourcePosition (D:\REPOS\alm\node_modules\source-map-support\source-map-support.js:188:42) at...

I think this `sourcemap-register.js` file is an output of this module: https://raw.githubusercontent.com/gradle/gradle-build-action/aeb3e0fcd750be80d74f07ee94363abdf2b51020/dist/post/sourcemap-register.js which contains this: ```js var n=0;while(r.indexOf(e+"/")!==0){var t=e.lastIndexOf("/"); if(tr){return 1}return-1}function compareByGeneratedPositionsInflated(e,r){var n=e.generatedLine-r.generatedLine;if(n!==0){return n}n=e.generatedColumn-r.generatedColumn;if(n!==0){return n}n=strcmp(e.source,r.source);if(n!==0){return n}n=e.originalLine-r.originalLine;if(n!==0){return n}n=e.originalColumn-r.originalColumn;if(n!==0){return n}return strcmp(e.name,r.name)}r.compareByGeneratedPositionsInflated=compareByGeneratedPositionsInflated;function parseSourceMapInput(e){return...

When using `import "source-map-support/register"` on Typescript 4.5.5 with `"module": "ES2020"` and `"type": "module"`, I see : ``` /.../node_modules/ts-node/dist-raw/node-esm-resolve-implementation.js:383 throw new ERR_MODULE_NOT_FOUND( ^ CustomError: Cannot find module '/.../node_modules/source-map-support/register' imported from /.../packages/backend/src/cdk.ts...

We are experiencing a RangeError similar to issue #93 in our Node.js app. I haven't been able to reproduce it and it seems to be occurring randomly at times. ```...

bug
help wanted

Hi, When an ES6 promise is rejected without being handled, node logs it to the console: ``` (node:61401) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: blah ``` and emits...

The trace-mapping module is faster than source-map in every benchmark https://github.com/jridgewell/trace-mapping#benchmarks It's also being adopted by many packages across the ecosystem ([Jest](https://github.com/facebook/jest/pull/12692), [Babel](https://github.com/babel/babel/blob/main/CHANGELOG.md#v71710-2022-04-29), [Terser](https://github.com/terser/terser/blob/master/CHANGELOG.md#v5140) at least have included it already)...

With more and more build tools (vite, nuxt, etc) going towards an esm-first build, it would be nice if a proper [esm interface](https://nodejs.org/api/esm.html) could be provided, i.e. transpile and distribute...

For seemingly unknown causes, when running transpiled code (either through ts-node, or running the plain javascript after transpiling it with tsc) the code throws the error "Cannot read property 'isNative'...