You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In my application I have a library with ngxLogger.
In application testing with ng serve I have no issues. SourceMaps are decoded and in my logs
But when I compile the application and deploy to staging source maps are not decoded giving an unknown 0:0 location.
After some digging I've found that in method
getMapping(sourceMap, position)
the sourceMap object contains only one line but the location is pointing to line = 1
so the line
if (lineIndex === position.lineNumber) {
is always false. (lineIndex is always 0 and position.lineNumber is equal to 1)
During development ngServe built only one file (vendor.js) with several line (the line zero of the mapping is blank) so in this case the method can find the correct liine.
Can you fix the issue ?
The text was updated successfully, but these errors were encountered:
In my application I have a library with ngxLogger.
In application testing with ng serve I have no issues. SourceMaps are decoded and in my logs
But when I compile the application and deploy to staging source maps are not decoded giving an unknown 0:0 location.
After some digging I've found that in method
getMapping(sourceMap, position)
the sourceMap object contains only one line but the location is pointing to line = 1
so the line
if (lineIndex === position.lineNumber) {
is always false. (lineIndex is always 0 and position.lineNumber is equal to 1)
During development ngServe built only one file (vendor.js) with several line (the line zero of the mapping is blank) so in this case the method can find the correct liine.
Can you fix the issue ?
The text was updated successfully, but these errors were encountered: