Comments (5)
Yes, that is annoying. It seems to depend on whether the code originated from the page or from the console. To be specific, this CoffeeScript code reproduces your issue:
(require '../source-map-support').install()
window.foo = ->
try
throw new Error 'foo'
catch e
console.log e.stack
foo()
However, calling foo() from the dev console generates a link that looks exactly the same but that takes you to the sources tab instead of initiating a download. Using the web inspector on itself shows that the download link has target="_blank"
but the sources tab link doesn't. It looks like it has to do with isExternal
in WebInspector.linkifyURLAsNode
. You should log a bug with Chrome DevTools to have this fixed.
from node-source-map-support.
Thanks for the prompt response!
I logged a Chromium bug for this issue at https://code.google.com/p/chromium/issues/detail?id=273113
from node-source-map-support.
It looks like this is fixed with the latest Chrome build (or perhaps a few versions ago) despite the Chromium bug still being open.
from node-source-map-support.
Weird. It still doesn't seem fixed for me, even on Canary (Version 37.0.2008.2 from today). For me it's actually worse than a new tab. I'm using the "servedir" node package to serve the files, which triggers a download of the *.coffee file.
from node-source-map-support.
Hm, well, I did change the sourcemaps to include the original files within the sourcemaps themselves (the sourcesContent field) - so maybe that's what caused the "fix" for me. Not sure.
from node-source-map-support.
Related Issues (20)
- lib throws error with "Cannot read property 'isNative' of undefined" HOT 2
- Problems with Node 12 on Windows
- Removes error code from node errors HOT 2
- [meta] are tests running on CI? HOT 1
- Format the output so it can be clicked HOT 1
- decodeURI for chinese filename
- Using source map support removes details from some errors HOT 1
- TypeError: Cannot read property 'String' of undefined HOT 1
- Cannot find module when `import "source-map-support/register"` HOT 2
- Leaking event hooks which prevents process from exiting
- Error still show compiled code
- Error still show compiled code
- Source-map needs to be updated to 0.8.0-beta.0 HOT 1
- RangeError Maximum call stack size exceeded when testing Vue project HOT 1
- `lastIndexOf` in `sourcemap-register.js` causes Github to flag `Incorrect suffix check` HOT 4
- document that this package is no longer needed as of node 12.12.0
- WASM traces do not correspond to expected offsets HOT 2
- Provide esm version HOT 2
- Dependency of some other major open source projects
- Is there Micro Frontend support? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-source-map-support.