Skip to content

source maps aren't requests when running via pub serve #16472

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

Closed
sethladd opened this issue Feb 1, 2014 · 6 comments
Closed

source maps aren't requests when running via pub serve #16472

sethladd opened this issue Feb 1, 2014 · 6 comments
Labels
closed-duplicate Closed in favor of an existing report

Comments

@sethladd
Copy link
Contributor

sethladd commented Feb 1, 2014

I don't see a source map file being sent, when serving my app over pub serve.

See screenshot.

I was hoping to debug via source maps when using pub serve ?


Attachment:
[Screen Shot 2014-01-31 at 4.23.31 PM.png](https://storage.googleapis.com/google-code-attachments/dart/issue-16472/comment-0/Screen Shot 2014-01-31 at 4.23.31 PM.png) (53.69 KB)

@sethladd
Copy link
Contributor Author

sethladd commented Feb 1, 2014

FWIW here's what it looks like when I just "run as javascript"


Attachment:
[Screen Shot 2014-01-31 at 4.25.56 PM.png](https://storage.googleapis.com/google-code-attachments/dart/issue-16472/comment-1/Screen Shot 2014-01-31 at 4.25.56 PM.png) (82.82 KB)

@sethladd
Copy link
Contributor Author

sethladd commented Feb 1, 2014

(notice the talk_to_me.dart.js.map request)

@nex3
Copy link
Member

nex3 commented Feb 1, 2014

"pub serve" just starts an HTTP server. The browser is responsible for whether or not it requests a given file.

Can you manually request the source map file?

@sethladd
Copy link
Contributor Author

sethladd commented Feb 1, 2014

Looks like pub serve isn't adding the trailing comments to the end of the app.dart.js file. The comments tell the dev tools about source maps.

Something like this:

//# sourceMappingURL=/path/to/file.js.map

To verify, run dart2js from the command line and check out its output.


Attachment:
[Screen Shot 2014-01-31 at 5.04.55 PM.png](https://storage.googleapis.com/google-code-attachments/dart/issue-16472/comment-4/Screen Shot 2014-01-31 at 5.04.55 PM.png) (83.84 KB)

@nex3
Copy link
Member

nex3 commented Feb 1, 2014

Added Duplicate label.
Marked as being merged into #15563.

@DartBot
Copy link

DartBot commented Jun 5, 2015

This issue has been moved to dart-lang/pub#839.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
closed-duplicate Closed in favor of an existing report
Projects
None yet
Development

No branches or pull requests

4 participants