This repository has been archived by the owner on Feb 26, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 408
long-stack-trace zone breaks SourceMaps on stack traces #661
Comments
tbosch
added a commit
to tbosch/angular
that referenced
this issue
Mar 8, 2017
The main use case for the generated source maps is to give errors a meaningful context in terms of the original source that the user wrote. Related changes that are included in this commit: * renamed virtual folders used for jit: * $ng/<module type>/module.ngfactory.js * $ng/<module type>/<comp type>.ngfactory.js * $ng/<module type>/<comp type>.html (for inline templates) * error logging: * all errors that happen in templates are logged from the place of the nearest element. * instead of logging error messages and stacks separately, we log the actual error. This is needed so that browsers apply source maps to the stack correctly. * error type and error is logged as one log entry. Note that long-stack-trace zone has a bug that disables source maps for stack traces, see angular/zone.js#661. BREAKING CHANGE: - DebugNode.source no more returns the source location of a node. Closes 14013
tbosch
added a commit
to tbosch/angular
that referenced
this issue
Mar 9, 2017
The main use case for the generated source maps is to give errors a meaningful context in terms of the original source that the user wrote. Related changes that are included in this commit: * renamed virtual folders used for jit: * $ng/<module type>/module.ngfactory.js * $ng/<module type>/<comp type>.ngfactory.js * $ng/<module type>/<comp type>.html (for inline templates) * error logging: * all errors that happen in templates are logged from the place of the nearest element. * instead of logging error messages and stacks separately, we log the actual error. This is needed so that browsers apply source maps to the stack correctly. * error type and error is logged as one log entry. Note that long-stack-trace zone has a bug that disables source maps for stack traces, see angular/zone.js#661. BREAKING CHANGE: - DebugNode.source no more returns the source location of a node. Closes 14013
tbosch
added a commit
to tbosch/angular
that referenced
this issue
Mar 9, 2017
The main use case for the generated source maps is to give errors a meaningful context in terms of the original source that the user wrote. Related changes that are included in this commit: * renamed virtual folders used for jit: * $ng/<module type>/module.ngfactory.js * $ng/<module type>/<comp type>.ngfactory.js * $ng/<module type>/<comp type>.html (for inline templates) * error logging: * all errors that happen in templates are logged from the place of the nearest element. * instead of logging error messages and stacks separately, we log the actual error. This is needed so that browsers apply source maps to the stack correctly. * error type and error is logged as one log entry. Note that long-stack-trace zone has a bug that disables source maps for stack traces, see angular/zone.js#661. BREAKING CHANGE: - DebugNode.source no more returns the source location of a node. Closes 14013
tbosch
added a commit
to tbosch/angular
that referenced
this issue
Mar 10, 2017
The main use case for the generated source maps is to give errors a meaningful context in terms of the original source that the user wrote. Related changes that are included in this commit: * renamed virtual folders used for jit: * $ng/<module type>/module.ngfactory.js * $ng/<module type>/<comp type>.ngfactory.js * $ng/<module type>/<comp type>.html (for inline templates) * error logging: * all errors that happen in templates are logged from the place of the nearest element. * instead of logging error messages and stacks separately, we log the actual error. This is needed so that browsers apply source maps to the stack correctly. * error type and error is logged as one log entry. Note that long-stack-trace zone has a bug that disables source maps for stack traces, see angular/zone.js#661. BREAKING CHANGE: - DebugNode.source no more returns the source location of a node. Closes 14013
tbosch
added a commit
to tbosch/angular
that referenced
this issue
Mar 10, 2017
The main use case for the generated source maps is to give errors a meaningful context in terms of the original source that the user wrote. Related changes that are included in this commit: * renamed virtual folders used for jit: * $ng/<module type>/module.ngfactory.js * $ng/<module type>/<comp type>.ngfactory.js * $ng/<module type>/<comp type>.html (for inline templates) * error logging: * all errors that happen in templates are logged from the place of the nearest element. * instead of logging error messages and stacks separately, we log the actual error. This is needed so that browsers apply source maps to the stack correctly. * error type and error is logged as one log entry. Note that long-stack-trace zone has a bug that disables source maps for stack traces, see angular/zone.js#661. BREAKING CHANGE: - DebugNode.source no more returns the source location of a node. Closes 14013
tbosch
added a commit
to tbosch/angular
that referenced
this issue
Mar 10, 2017
The main use case for the generated source maps is to give errors a meaningful context in terms of the original source that the user wrote. Related changes that are included in this commit: * renamed virtual folders used for jit: * $ng/<module type>/module.ngfactory.js * $ng/<module type>/<comp type>.ngfactory.js * $ng/<module type>/<comp type>.html (for inline templates) * error logging: * all errors that happen in templates are logged from the place of the nearest element. * instead of logging error messages and stacks separately, we log the actual error. This is needed so that browsers apply source maps to the stack correctly. * error type and error is logged as one log entry. Note that long-stack-trace zone has a bug that disables source maps for stack traces, see angular/zone.js#661. BREAKING CHANGE: - DebugNode.source no more returns the source location of a node. Closes 14013
tbosch
added a commit
to tbosch/angular
that referenced
this issue
Mar 11, 2017
The main use case for the generated source maps is to give errors a meaningful context in terms of the original source that the user wrote. Related changes that are included in this commit: * renamed virtual folders used for jit: * ng://<module type>/module.ngfactory.js * ng://<module type>/<comp type>.ngfactory.js * ng://<module type>/<comp type>.html (for inline templates) * error logging: * all errors that happen in templates are logged from the place of the nearest element. * instead of logging error messages and stacks separately, we log the actual error. This is needed so that browsers apply source maps to the stack correctly. * error type and error is logged as one log entry. Note that long-stack-trace zone has a bug that disables source maps for stack traces, see angular/zone.js#661. BREAKING CHANGE: - DebugNode.source no more returns the source location of a node. Closes 14013
tbosch
added a commit
to tbosch/angular
that referenced
this issue
Mar 13, 2017
The main use case for the generated source maps is to give errors a meaningful context in terms of the original source that the user wrote. Related changes that are included in this commit: * renamed virtual folders used for jit: * ng://<module type>/module.ngfactory.js * ng://<module type>/<comp type>.ngfactory.js * ng://<module type>/<comp type>.html (for inline templates) * error logging: * all errors that happen in templates are logged from the place of the nearest element. * instead of logging error messages and stacks separately, we log the actual error. This is needed so that browsers apply source maps to the stack correctly. * error type and error is logged as one log entry. Note that long-stack-trace zone has a bug that disables source maps for stack traces, see angular/zone.js#661. BREAKING CHANGE: - DebugNode.source no more returns the source location of a node. Closes 14013
chuckjaz
pushed a commit
to angular/angular
that referenced
this issue
Mar 14, 2017
The main use case for the generated source maps is to give errors a meaningful context in terms of the original source that the user wrote. Related changes that are included in this commit: * renamed virtual folders used for jit: * ng://<module type>/module.ngfactory.js * ng://<module type>/<comp type>.ngfactory.js * ng://<module type>/<comp type>.html (for inline templates) * error logging: * all errors that happen in templates are logged from the place of the nearest element. * instead of logging error messages and stacks separately, we log the actual error. This is needed so that browsers apply source maps to the stack correctly. * error type and error is logged as one log entry. Note that long-stack-trace zone has a bug that disables source maps for stack traces, see angular/zone.js#661. BREAKING CHANGE: - DebugNode.source no more returns the source location of a node. Closes 14013
@tbosch , I would like to look into this issue, based on the angular/angular#15185, the source map will not be correct when SyntaxError, so I just modify the html template with some wrong syntax , so I can reproduce? If you can provide a reproduce repository, it will help, thank you. |
SamVerschueren
pushed a commit
to SamVerschueren/angular
that referenced
this issue
Mar 18, 2017
The main use case for the generated source maps is to give errors a meaningful context in terms of the original source that the user wrote. Related changes that are included in this commit: * renamed virtual folders used for jit: * ng://<module type>/module.ngfactory.js * ng://<module type>/<comp type>.ngfactory.js * ng://<module type>/<comp type>.html (for inline templates) * error logging: * all errors that happen in templates are logged from the place of the nearest element. * instead of logging error messages and stacks separately, we log the actual error. This is needed so that browsers apply source maps to the stack correctly. * error type and error is logged as one log entry. Note that long-stack-trace zone has a bug that disables source maps for stack traces, see angular/zone.js#661. BREAKING CHANGE: - DebugNode.source no more returns the source location of a node. Closes 14013
asnowwolf
pushed a commit
to asnowwolf/angular
that referenced
this issue
Aug 11, 2017
The main use case for the generated source maps is to give errors a meaningful context in terms of the original source that the user wrote. Related changes that are included in this commit: * renamed virtual folders used for jit: * ng://<module type>/module.ngfactory.js * ng://<module type>/<comp type>.ngfactory.js * ng://<module type>/<comp type>.html (for inline templates) * error logging: * all errors that happen in templates are logged from the place of the nearest element. * instead of logging error messages and stacks separately, we log the actual error. This is needed so that browsers apply source maps to the stack correctly. * error type and error is logged as one log entry. Note that long-stack-trace zone has a bug that disables source maps for stack traces, see angular/zone.js#661. BREAKING CHANGE: - DebugNode.source no more returns the source location of a node. Closes 14013
juleskremer
pushed a commit
to juleskremer/angular
that referenced
this issue
Aug 28, 2017
The main use case for the generated source maps is to give errors a meaningful context in terms of the original source that the user wrote. Related changes that are included in this commit: * renamed virtual folders used for jit: * ng://<module type>/module.ngfactory.js * ng://<module type>/<comp type>.ngfactory.js * ng://<module type>/<comp type>.html (for inline templates) * error logging: * all errors that happen in templates are logged from the place of the nearest element. * instead of logging error messages and stacks separately, we log the actual error. This is needed so that browsers apply source maps to the stack correctly. * error type and error is logged as one log entry. Note that long-stack-trace zone has a bug that disables source maps for stack traces, see angular/zone.js#661. BREAKING CHANGE: - DebugNode.source no more returns the source location of a node. Closes 14013
close for not be able to reproduce. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Looks like the extra line in the stack trace breaks source maps (e.g.
------------- Elapsed: 4137 ms; At: Mon Mar 06 2017 11:00:38 GMT-0800 (PST) -------------
).This does not work (which is used by long-stack-trace zone)
This works:
The text was updated successfully, but these errors were encountered: