ts-template icon indicating copy to clipboard operation
ts-template copied to clipboard

Sourcemap not working

Open tomsoftware opened this issue 4 years ago • 0 comments

Hi,

cause webpack is packing all together it is quiet difficult to find the source of an error. I thought this would be easy to fix / config but I give up. May you can help?

Example car.ts

  public go(msg: string): string {
	msg = null;
	console.log(msg.length);
   }

Results in stack trace - line number is 121 but actually is 23 in the Car.ts file:

        TypeError: Cannot read property 'length' of null
            at <Jasmine>
            at Car.go (test/sample_test.js:121:25)
            at UserContext.<anonymous> (test/sample_test.js:163:33)
            at <Jasmine>

tomsoftware avatar Nov 28 '19 08:11 tomsoftware