question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Sourcemap - names array empty for all files

See original GitHub issue

TypeScript Version: 1.8.34.0 Module System: AMD ECMAScript Version: ECMAScript 5 VS 2015 Update 3

All of my map files have the names array empty. I would expect that to have been populated. This has been an issue with VS2015 with all updates

Code

class HomeIndex {

    someVar: number;

    constructor() {
        this.someVar = 0;
    }

    onLoad = () => { 
    };

    dispose() {
    };

}

export = HomeIndex;

Generated map

{
  "version": 3,
  "file": "Index.js",
  "sourceRoot": "",
  "sources": [ "Index.ts" ],
  "names": [],
  "mappings": ";;IAAA;QAII;YAIA,WAAM,GAAG;YACT,CAAC,CAAC;YAJE,IAAI,CAAC,OAAO,GAAG,CAAC,CAAC;QACrB,CAAC;QAKD,2BAAO,GAAP;QACA,CAAC;;QAEL,gBAAC;IAAD,CAAC,AAdD,IAcC;IAED,OAAS,SAAS,CAAC"
}

Expected behavior: names array should contain values for members and variables Actual behavior: names array empty

Issue Analytics

  • State:open
  • Created 7 years ago
  • Reactions:47
  • Comments:24 (2 by maintainers)

github_iconTop GitHub Comments

19reactions
RayzRazkocommented, Jun 6, 2020

This is extremely frustrating. Sometimes it makes it almost impossible to debug the code. I’m surprised this issue is not prioritized.

11reactions
yudhistira-aryacommented, Jan 23, 2020

Is this issue still being actively looked at?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Closure compiler source map = empty (Chrome) or wrong ...
The solution to this is to set up proper sourceMapLocationMappings . Using the closure-compiler cli, you do that with --source_map_location_ ...
Read more >
Source Maps - Parcel
Generates an empty map from the provided fileName and sourceContent. Params: sourceName : path of the source file; sourceContent : content of the...
Read more >
How do source maps work? - Matt Zeunert
“IAAM” represents the array [4,0,0,6] . The column indices are relative to the column from the previous segment, but because we started at ......
Read more >
JavaScript Obfuscator Tool
Also, be sure to read about all the options to understand all the trade-offs between code ... Source Map File Name. Strings Transformations....
Read more >
Compiler Options - ClojureScript
Inferred type mismatches will result in the :invalid-array-access warning ... A module needs a name, an individual :output-to file path, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found