Sometimes when I hit a breakpoint in the Chrome Developer Tools, the TypeScript this
is actually _this
in the JavaScript. I have to manually put _this
in the console to see what is actually being used. Is there a way to fix this?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
the TypeScript this is actually _this in the JavaScript
This is due to a bug in the sourcemaps. You can track it here : https://github.com/Microsoft/TypeScript/issues/2859