Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sourcemaps not working in Visual Studio / IE #19

Closed
henrify opened this issue Nov 19, 2014 · 2 comments
Closed

Sourcemaps not working in Visual Studio / IE #19

henrify opened this issue Nov 19, 2014 · 2 comments

Comments

@henrify
Copy link

henrify commented Nov 19, 2014

It seems that the inlined sourcemaps you generate cannot be read by Visual Studio / IE, and consequently breakpoints are not hit etc.

The error in console is: "SourceMap data:application/json;base64 ... read failed: The URI prefix is not recognized". Visual Studio 2013 Ultimate update 4 with TypeScript 1.3, IE 11.

Or am i missing something? It seems weird that tsify would not work with the official / most fully featured / most widely used TypeScript IDE...

@smrq
Copy link
Member

smrq commented Nov 19, 2014

Sounds like a missing feature in IE 11. That said, the problem is not related to tsify specifically; the generated sourcemaps are consumed by Browserify to create the final inlined sourcemap that you see. If IE 11 is missing complete sourcemap support, you can work around it pretty easily by using e.g. thlorenz/exorcist as a part of your build workflow.

If you have any problems with the sourcemap contents however, please open an issue here!

@smrq smrq closed this as completed Nov 19, 2014
@henrify
Copy link
Author

henrify commented Nov 19, 2014

Yes, the root cause is definitely IE 11. What a surprise. I checked browserify's issues and they actually had request and lengthy discussion about adding support for non-inlined sourcemaps, but it was declined.

Thanks for your help and pointing to exorcist, gulp with watchify+browserify+tsify+exorcist seems to be working well with Visual Studio and IE 11.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants